Skip to content

docs: document TRUSTED_PROXIES for reverse-proxied installs - #27

Merged
gdarko merged 1 commit into
masterfrom
docs/trusted-proxies-2x
Sep 22, 2026
Merged

gdarko merged 1 commit into
masterfrom
docs/trusted-proxies-2x

Conversation

@gdarko

@gdarko gdarko commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

The 2.x half of the same trap as InvoiceShelf/InvoiceShelf#500. 2.x has the identical TRUSTED_PROXIES default and the identical failure mode: people list their reverse proxy's LAN address, the container sees the Docker bridge gateway instead, X-Forwarded-Proto is discarded, and the app generates http:// links behind an https site.

FORCE_HTTPS is deliberately left out here, since that setting only exists on 3.x. The 3.x page gets both in #26.

A narrowed TRUSTED_PROXIES must name the address the container sees, not
the proxy's LAN address; naming the wrong one makes InvoiceShelf discard
X-Forwarded-Proto and generate http:// links behind an https site.
@gdarko
gdarko merged commit 42fc12d into master Sep 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant