fix: canonical в продакшен не должен показывать http вместо https
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m0s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m0s
This commit is contained in:
@@ -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