mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
settings: Stop enabling USE_X_FORWARDED_HOST by default.
This was added in 1fded25025, and is not
necessary for standard Zulip installs. While both Host: and
X-Forwarded-Host: are nominally untrusted, there is no reason to
complicate the deployment by defaulting it on.
This commit is contained in:
@@ -152,8 +152,6 @@ USE_TZ = True
|
|||||||
|
|
||||||
# this directory will be used to store logs for development environment
|
# this directory will be used to store logs for development environment
|
||||||
DEVELOPMENT_LOG_DIRECTORY = os.path.join(DEPLOY_ROOT, "var", "log")
|
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),
|
# Extend ALLOWED_HOSTS with localhost (needed to RPC to Tornado),
|
||||||
ALLOWED_HOSTS += ["127.0.0.1", "localhost"]
|
ALLOWED_HOSTS += ["127.0.0.1", "localhost"]
|
||||||
|
|||||||
Reference in New Issue
Block a user