Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaultwarden's IP_HEADER env var is inconsistent #77

Closed
asardaes opened this issue Nov 4, 2023 · 1 comment · Fixed by #80
Closed

Vaultwarden's IP_HEADER env var is inconsistent #77

asardaes opened this issue Nov 4, 2023 · 1 comment · Fixed by #80

Comments

@asardaes
Copy link
Contributor

asardaes commented Nov 4, 2023

Likely for historical reasons, the environment for Vaultwarden specifies a custom IP_HEADER env var:

- IP_HEADER=X-Forwarded-For

However, this setup uses Caddy as the reverse proxy, and that's configured to set the real IP in X-Real-IP:

header_up X-Real-IP {remote_host}

So the Compose YAML needs to be adjusted.

@dadatuputi
Copy link
Owner

Looks like vaultwarden changed that at some time, currently it is set to X-Real-IP (https://github.com/dani-garcia/vaultwarden/blob/efc6eb0073d9740a3bf2dc99e8fe5afd50a2e4e3/.env.template#L61)

@dadatuputi dadatuputi mentioned this issue Nov 7, 2023
dadatuputi added a commit that referenced this issue Nov 7, 2023
Fix #77 - ip header updated to vaultwarden default
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 a pull request may close this issue.

2 participants