Remove fixed-host and HTTPS-only deployment requirements so the dashboard works at the container IP on HTTP port 5187. Validate browser mutations against the actual request host and retain access keys and CSRF protection. Ignore legacy public-origin settings and make Proxmox setup hostname-free. Update D14 and regression coverage for version 1.2.3. Refs #25
This commit is contained in:
+12
-10
@@ -8,7 +8,7 @@ There is no inference gateway. Coding traffic continues through the user's own c
|
||||
## Run locally
|
||||
|
||||
For automatic CT creation from a Proxmox host, use the [Proxmox installer](proxmox.md).
|
||||
It uses your existing HTTPS proxy and exposes private HTTP :5187; updates run inside the CT
|
||||
It exposes HTTP :5187 directly at the container IP; updates run inside the CT
|
||||
with `finaltoken-update`.
|
||||
|
||||
Build from the repository root:
|
||||
@@ -49,14 +49,15 @@ Start the server from the repository root:
|
||||
dotnet run --project src/FinalToken.Web -c Release --no-build
|
||||
```
|
||||
|
||||
By default it listens on `http://127.0.0.1:5187`. Open exactly that URL and enter the dashboard key.
|
||||
For a remote deployment, set `FINALTOKEN_PUBLIC_ORIGIN` to the public HTTPS origin and run a TLS
|
||||
reverse proxy that preserves its Host header, or configure HTTPS directly in Kestrel.
|
||||
`ASPNETCORE_URLS` changes the listening address. Do not expose a plain HTTP listener to a remote
|
||||
network. A private HTTP hop from your existing TLS proxy is supported; restrict that backend
|
||||
listener to the proxy/private network. No forwarded-header trust is enabled automatically. Restrict direct backend access;
|
||||
the reverse proxy must not log request bodies or authorization headers. Login URLs/codes are
|
||||
deliberately absent from server logs and disk state. TLS termination sees the transient code.
|
||||
By default it listens on `http://127.0.0.1:5187`. Set `ASPNETCORE_URLS=http://0.0.0.0:5187`
|
||||
for network access, then open `http://<server-ip>:5187` and enter the dashboard key. The Proxmox
|
||||
installer sets this listener automatically. No hostname registration, proxy or HTTPS is required.
|
||||
The old `FINALTOKEN_PUBLIC_ORIGIN` setting is ignored, including placeholder values in existing CTs.
|
||||
HTTP transport is unencrypted; an optional HTTPS proxy must preserve Host and browser Origin,
|
||||
or you can configure HTTPS directly in Kestrel. Browser mutations still require the matching
|
||||
request Host/Origin and CSRF protection. HTTP sessions work over HTTP; HTTPS sessions use Secure
|
||||
cookies. No forwarded-header trust is enabled automatically. Proxies must not log request bodies
|
||||
or authorization headers. Login URLs/codes are absent from server logs and disk state.
|
||||
Keys authorize all profiles on their configured machine; use service-account file/environment
|
||||
permissions and a private network/firewall. Rotate a machine key on both ends to revoke it.
|
||||
|
||||
@@ -87,7 +88,8 @@ Set `FINALTOKEN_WORKER_KEY` to the server's key for this machine. Start from the
|
||||
dotnet run --project src/FinalToken.Worker -c Release --no-build -- <absolute worker.json path>
|
||||
```
|
||||
|
||||
Remote worker URLs require HTTPS. Workers only make outbound connections; no worker port is open.
|
||||
Worker URLs accept HTTP or HTTPS origins, including direct IP addresses. Workers only make
|
||||
outbound connections; no worker port is open.
|
||||
Use the OS service manager/Task Scheduler for unattended startup, under the intended user with
|
||||
the CLI on PATH. A Linux/LXC worker needs .NET 10 (or a future locally built NativeAOT binary),
|
||||
installed official CLIs, writable profile directories, outbound HTTPS and any CLI keychain
|
||||
|
||||
Reference in New Issue
Block a user