Skip to content

Commit

Permalink
Remove USE_X_FORWARDED_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed May 26, 2019
1 parent 77bebce commit 3d982f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions project_novis/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ def bool_env(key, default=None):
CSP_UPGRADE_INSECURE_REQUESTS = True
CSP_BLOCK_ALL_MIXED_CONTENT = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"

else:
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", "INSECURE")

ALLOWED_HOSTS = [os.environ.get("DJANGO_ALLOWED_HOSTS", "*")]
USE_X_FORWARDED_HOST = True
ALLOWED_HOSTS = [os.environ.get("DJANGO_ALLOWED_HOSTS", "*"), ]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Application definition
Expand Down

0 comments on commit 3d982f1

Please sign in to comment.