docs(deploy): trust the reverse proxy's own fixed address, never a Docker subnet
The compose comments, the releases README and the Unraid template told users to list the Docker network's subnet (172.17.0.0/16 on Unraid) in TITANO_TRUSTED_PROXIES. That range holds the gateway, from which Docker relays IPv6 clients and the host's own connections to published ports, and on the default bridge every other container: each could again pick its X-Forwarded-For and X-Forwarded-Proto. The guidance now names the proxy container's fixed address on a shared user-defined network, warns against subnets, the gateway and the default bridge, and sends a proxy on the Docker host to network_mode: host (loopback). The server's parse error no longer suggests a /12 network. 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
+17
-8
No files matched your search
@@ -91,9 +91,14 @@ admin panel shows under Settings so you can compare them.
|
||||
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. 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.
|
||||
directly, so they must not choose the address the sign-in limit and the audit log see. List your proxy's own
|
||||
address. Give a proxy container a fixed IP on a user-defined Docker network it shares with Titano (`ipv4_address` in
|
||||
compose, *Fixed IP address* on Unraid), for example `172.30.0.10`, and let it reach Titano on that network rather
|
||||
than through a published port. Never list a subnet, the network's gateway (`.1`) or Docker's default bridge
|
||||
(`172.17.0.0/16`): Docker relays connections to published ports from the gateway (IPv6 clients, the host itself),
|
||||
and on the default bridge every other container would count as your proxy too. For a proxy running on the Docker
|
||||
host itself, run Titano with `network_mode: host`: the proxy then reaches it over loopback. The admin panel shows
|
||||
*Not via proxy* when a page did not come through a trusted proxy over HTTPS.
|
||||
|
||||
## Titano Server on Unraid
|
||||
|
||||
|
||||
Reference in new issue
Block a user