tools: update inside LXC and use the existing proxy
agent-review agent review: fail

Keep the Proxmox host responsible only for container creation. Serve the private backend on port 5187 behind the operator's HTTPS proxy and install a self-updating in-container command. Preserve existing identity and history while migrating the old installer-owned proxy with listener rollback.

Refs #21
This commit is contained in:
Florian Schmidt
2026-11-15 12:49:53 +01:00
parent c75446008c
commit 7b70c7a0fa
20 changed files with 617 additions and 607 deletions
+5 -2
View File
@@ -7,7 +7,9 @@ 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 install/update script](proxmox.md).
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
with `finaltoken-update`.
Build from the repository root:
@@ -51,7 +53,8 @@ By default it listens on `http://127.0.0.1:5187`. Open exactly that URL and ente
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. No forwarded-header trust is enabled automatically. Restrict direct backend access;
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.
Keys authorize all profiles on their configured machine; use service-account file/environment