fix(deploy): stop on unwritable .titano folders and document proxies and host networking
- Entrypoint: an existing .titano folder or subfolder that PUID:PGID cannot write stops the container with a one-line error instead of a restart loop; it is never chowned. - Compose and README: with network_mode host, publish PostgreSQL on loopback and set TITANO_DB_HOST to 127.0.0.1; behind a proxy, list it in TITANO_TRUSTED_PROXIES (loopback only by default). Unraid template gains a Trusted proxies variable. - README: what the Windows server requires of its data folder and archive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
4 files changed
+25
-8
No files matched your search
@@ -84,10 +84,14 @@ admin panel shows under Settings so you can compare them.
|
||||
and LAN discovery name the ports clients can reach.
|
||||
- LAN discovery (`TITANO_DISCOVERY`, on by default) needs host networking (`network_mode: host` in compose, Network
|
||||
type *Host* on Unraid): on a bridge network its broadcasts never leave the container's network. Without it, add the
|
||||
server in Titano by its address.
|
||||
server in Titano by its address. With `network_mode: host` the name `postgres` no longer resolves: remove the
|
||||
`ports` of the `titano` service, publish PostgreSQL on loopback (`ports: ["127.0.0.1:5432:5432"]` under `postgres`)
|
||||
and set `TITANO_DB_HOST: 127.0.0.1`.
|
||||
- Behind a reverse proxy (`TITANO_TLS_MODE=proxy`), only the proxies listed in `TITANO_TRUSTED_PROXIES` may set
|
||||
`X-Forwarded-*` headers (default: loopback and the private networks 10/8, 172.16/12, 192.168/16, fc00::/7). The admin
|
||||
panel shows *Not via proxy* when a page did not come through a trusted proxy over HTTPS.
|
||||
`X-Forwarded-*` headers. By default that is loopback only: other machines on your network reach the HTTP port
|
||||
directly, so they must not choose the address the sign-in limit and the audit log see. List your proxy's address,
|
||||
or the subnet of the Docker network it shares with Titano (for example `172.18.0.0/16`). The admin panel shows *Not
|
||||
via proxy* when a page did not come through a trusted proxy over HTTPS.
|
||||
|
||||
## Titano Server on Unraid
|
||||
|
||||
@@ -109,7 +113,9 @@ Choose the *Server* component in the setup, or unpack `Titano-Server-win-x64-<ve
|
||||
`C:\ProgramData\Titano Server` by default, or PostgreSQL with `TITANO_DB=postgres` and the `TITANO_DB_*` variables.
|
||||
The data folder is readable only by the server's account, SYSTEM and Administrators; without `TITANO_ADMIN_PASSWORD`
|
||||
the first start writes a temporary admin password to `initial-admin-password.txt` there (open it from an
|
||||
administrator prompt).
|
||||
administrator prompt). Everything in it must belong to those accounts and nothing in it may be a link: otherwise the
|
||||
server does not start and names the file to check. A new archive folder (default `C:\TitanoArchive`) can be changed
|
||||
only by those accounts and read by other users; when other users can change an existing archive, the log says so.
|
||||
|
||||
Run `Titano.Server.exe` in a console, or install it as a Windows service from an administrator prompt with
|
||||
`Titano.Server.exe --install-service` (remove it with `--uninstall-service`). The service runs as LocalSystem, so it
|
||||
|
||||
Reference in new issue
Block a user