Browse Source
Merge pull request #350 from CatalystCode/enhancement/ssl-settings
Enhancement/Add settings required for SSL
pull/443/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
app/app/settings.py
|
|
@ -270,6 +270,9 @@ if DATABASES['default'].get('ENGINE') == 'sql_server.pyodbc': |
|
|
|
|
|
|
|
# Honor the 'X-Forwarded-Proto' header for request.is_secure() |
|
|
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') |
|
|
|
SESSION_COOKIE_SECURE = env.bool('SESSION_COOKIE_SECURE', False) |
|
|
|
CSRF_COOKIE_SECURE = env.bool('CSRF_COOKIE_SECURE', False) |
|
|
|
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS', []) |
|
|
|
|
|
|
|
# Allow all host headers |
|
|
|
# ALLOWED_HOSTS = ['*'] |
|
|
|