Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7eeb44a1f5 |
@@ -154,3 +154,12 @@ if not DEBUG:
|
|||||||
WHITENOISE_ROOT = BASE_DIR.parent / 'public'
|
WHITENOISE_ROOT = BASE_DIR.parent / 'public'
|
||||||
|
|
||||||
SITE_ID = 1
|
SITE_ID = 1
|
||||||
|
|
||||||
|
# Настройки безопасности для работы за прокси
|
||||||
|
if not DEBUG:
|
||||||
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
SECURE_SSL_REDIRECT = True
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
USE_X_FORWARDED_HOST = True
|
||||||
|
USE_X_FORWARDED_PORT = True
|
||||||
|
|||||||
Reference in New Issue
Block a user