Skip to content

docs(docker): forward the Host header behind a proxy - #154

Merged
kelsos merged 1 commit into
rotki:mainfrom
kelsos:docs/reverse-proxy-host-header
Nov 4, 2026
Merged

kelsos merged 1 commit into
rotki:mainfrom
kelsos:docs/reverse-proxy-host-header

Conversation

@kelsos

@kelsos kelsos commented Nov 4, 2026

Copy link
Copy Markdown
Member

What

Adds a "Forward the original Host header" subsection under "Use an authenticating reverse proxy" in the Docker page, plus a Troubleshooting entry for 403 Cross-origin requests are not allowed.

Why

rotki/rotki#13547 makes the API refuse requests that change data (login, settings, imports) when the browser's Origin names a different host or port than the Host rotki receives. Traefik, Caddy and HAProxy forward Host unchanged by default, but nginx's proxy_pass and Apache's ProxyPass rewrite it, which would make every login and save fail behind those proxies.

The page covers:

  • nginx: proxy_set_header Host $http_host;, and why $host is not enough on a non-standard port
  • Apache: ProxyPreserveHost On
  • the existing Traefik example needs no change

The text says "Starting with rotki 1.44.3", so this should merge once that release is out.

rotki now refuses writes whose Origin does not match the Host it
receives, so a proxy that rewrites Host breaks login and saving. Show
the nginx and Apache settings and add a troubleshooting entry.
@kelsos
kelsos merged commit 22c7b60 into rotki:main Nov 4, 2026
5 checks passed
@kelsos
kelsos deleted the docs/reverse-proxy-host-header branch November 4, 2026 11:53

This branch was previously deployed

1 inactive deployment
github-pages — 22c7b606 Deployed Nov 4, 2026 by kelsos via deploy #240
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