diff --git a/ocdaction/ocdaction/settings/__init__.py b/ocdaction/ocdaction/settings/__init__.py index 28aca3d..cca0c12 100644 --- a/ocdaction/ocdaction/settings/__init__.py +++ b/ocdaction/ocdaction/settings/__init__.py @@ -80,6 +80,15 @@ WSGI_APPLICATION = 'ocdaction.wsgi.application' +# Security +SECURE_SSL_REDIRECT = True +SESSION_COOKIE_SECURE = True +CSRF_COOKIE_SECURE = True +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') + +PREPEND_WWW = True +BASE_URL = "https://ocdyouthapp.org" +ALLOWED_HOSTS = ['www.ocdyouthapp.org', 'ocdyouthapp.org'] # Database # https://docs.djangoproject.com/en/1.9/ref/settings/#databases