seibert-media / teamvault

Keep your company's passwords behind the firewall
Other
40 stars 12 forks source link

Ability to set ALLOWED_HOSTS independent of base_url #97

Closed MaZderMind closed 6 years ago

MaZderMind commented 6 years ago

When operating TeamVault behind a http(s)-Proxy, ALLOWED_HOSTS needs to contain the internal ip/port (ie http://127.0.0.1:8080). Currently ALLOWED_HOSTS is only configured based on base_url, so the base_url has to be set to http://127.0.0.1:8080 which is obviously incorrect in a https-proxy-setup and will result to problems when the base_url is used for redirects.

It would be nice to be able to set / add to ALLOWED_HOSTS independent of the base_url.

trehn commented 6 years ago

No, you just need to configure your proxy to leave the Host header as it is. See the included nginx config for an example.

MaZderMind commented 6 years ago

Thank you for explaining.