mirror of https://github.com/zulip/zulip.git
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:
parent
9a6886f630
commit
68bc975066
|
@ -153,8 +153,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"]
|
||||||
|
|
Loading…
Reference in New Issue