Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Stop enabling USE_X_FORWARDED_HOST by default.

Alex Vandiver68bc97506613
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index 81bd9379928..1d15776514a 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -153,8 +153,6 @@ USE_TZ = True
# this directory will be used to store logs for development environment
DEVELOPMENT_LOG_DIRECTORY = os.path.join(DEPLOY_ROOT, "var", "log")
-# Make redirects work properly behind a reverse proxy
-USE_X_FORWARDED_HOST = True
# Extend ALLOWED_HOSTS with localhost (needed to RPC to Tornado),
ALLOWED_HOSTS += ["127.0.0.1", "localhost"]