Move Django to https

This commit is contained in:
Tanner Collin 2018-11-18 22:05:05 -07:00
parent 31a0112f9b
commit 2812685868

View File

@ -47,12 +47,6 @@ REST_FRAMEWORK = {
), ),
} }
#CORS_ORIGIN_WHITELIST = (
# 'localhost:8000',
#)
CORS_ORIGIN_ALLOW_ALL = True
MIDDLEWARE = [ MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware', 'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
@ -82,10 +76,18 @@ TEMPLATES = [
}, },
] ]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
WSGI_APPLICATION = 'authserver.wsgi.application' WSGI_APPLICATION = 'authserver.wsgi.application'
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '172.17.17.65', 'tools-auth.protospace.ca'] ALLOWED_HOSTS = ['localhost', '127.0.0.1', '172.17.17.65', 'tools-auth.protospace.ca']
#CORS_ORIGIN_WHITELIST = (
# 'localhost:8000',
#)
CORS_ORIGIN_ALLOW_ALL = True
# Database # Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases # https://docs.djangoproject.com/en/2.1/ref/settings/#databases