add reverse proxy adoption

This commit is contained in:
Götz 2017-10-01 02:13:33 +02:00
parent db0066f3b5
commit d935d6f6e1

View File

@ -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')
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')