Nastaveni HTTPS-only session cookies (prod a test)
This commit is contained in:
parent
b77318e2d7
commit
3038fada3d
2 changed files with 11 additions and 1 deletions
|
@ -47,12 +47,18 @@ import os
|
||||||
|
|
||||||
SERVER_EMAIL = 'mamweb-prod-errors@mam.mff.cuni.cz'
|
SERVER_EMAIL = 'mamweb-prod-errors@mam.mff.cuni.cz'
|
||||||
ADMINS = [
|
ADMINS = [
|
||||||
('Tomas Gavenciak', 'gavento@ucw.cz'),
|
|
||||||
('Petr Pecha', 'nejlepsitextovyeditorjevim@gmail.com'),
|
('Petr Pecha', 'nejlepsitextovyeditorjevim@gmail.com'),
|
||||||
('Matěj Kocián', 'matej.kocian@gmail.com'),
|
('Matěj Kocián', 'matej.kocian@gmail.com'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# SECURITY: only send sensitive cookies via HTTPS
|
||||||
|
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# LOGGING = {
|
# LOGGING = {
|
||||||
# 'version': 1,
|
# 'version': 1,
|
||||||
# 'disable_existing_loggers': True,
|
# 'disable_existing_loggers': True,
|
||||||
|
|
|
@ -53,6 +53,10 @@ ADMINS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# SECURITY: only send sensitive cookies via HTTPS
|
||||||
|
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue