1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-02-25 15:06:32 +00:00

Merge branch 'harden' into 'main'

Harden Django project configuration

See merge request mediatek/med!8
This commit is contained in:
erdnaxe 2022-04-15 11:39:51 +02:00
commit 03b22f2162

View File

@ -26,6 +26,16 @@ SITE_ID = 1
ALLOWED_HOSTS = ['127.0.0.1'] ALLOWED_HOSTS = ['127.0.0.1']
# Use secure cookies in production
SESSION_COOKIE_SECURE = not DEBUG
CSRF_COOKIE_SECURE = not DEBUG
# Remember HTTPS for 1 year
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [