diff options
author | 2019-09-30 12:24:16 +0200 | |
---|---|---|
committer | 2019-09-30 12:24:16 +0200 | |
commit | 413d7ba14dc9ea189a57ac38cc2c3dd2fdea1030 (patch) | |
tree | 99a76d6169c04468a5dd3194979bd2b64daf1a7f /pydis_site/settings.py | |
parent | Reject unhidden note or hidden warning infraction (diff) | |
parent | Correct the Dockerfile path for azure. (diff) |
Merge branch 'master' into decoupling-warnings-and-notes
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r-- | pydis_site/settings.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 3f6cd94a..4534f54b 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -30,12 +30,19 @@ DEBUG = env('DEBUG') # SECURITY WARNING: keep the secret key used in production secret! if DEBUG: - ALLOWED_HOSTS = [ - 'pythondiscord.local', - 'admin.pythondiscord.local', - 'api.pythondiscord.local', - 'staff.pythondiscord.local', - ] + ALLOWED_HOSTS = env.list( + 'ALLOWED_HOSTS', + default=[ + 'pythondiscord.local', + 'api.pythondiscord.local', + 'admin.pythondiscord.local', + 'staff.pythondiscord.local', + 'web', + 'api.web', + 'admin.web', + 'staff.web' + ] + ) SECRET_KEY = secrets.token_urlsafe(32) elif 'CI' in os.environ: |