From d935d6f6e185a7d0cf4ba5ef405f890da59c27d9 Mon Sep 17 00:00:00 2001 From: michigg Date: Sun, 1 Oct 2017 02:13:33 +0200 Subject: [PATCH] add reverse proxy adoption --- ofu_app/ofu_app/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ofu_app/ofu_app/settings.py b/ofu_app/ofu_app/settings.py index 9b3834d..171ecaf 100644 --- a/ofu_app/ofu_app/settings.py +++ b/ofu_app/ofu_app/settings.py @@ -24,7 +24,7 @@ SECRET_KEY = '7tm($-7tz!co8762!)ptmj%)80)qa^z0odee*8-!be!i(a!p4j' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['mg-server.ddns.net', ] # Application definition @@ -138,7 +138,6 @@ LANGUAGE_CODE = 'de' TIME_ZONE = 'Europe/Berlin' - USE_I18N = True USE_L10N = False @@ -161,4 +160,4 @@ STATICFILES_DIRS = [ # Setup support for proxy headers USE_X_FORWARDED_HOST = True -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') \ No newline at end of file +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')