Skip to content

Commit

Permalink
Updated: commented security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind-4 committed Oct 1, 2023
1 parent 6c1f8aa commit 01fa661
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions web/backend/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@
from backend.db.postgres_db import * #noqa
from backend.email.gmail import * #noqa

if DJANGO_LIVE and not DJANGO_DEBUG:
print("SECURE SETTINGS")
SECURE_HSTS_SECONDS = True
SECURE_HSTS_PRELOAD = True
# if DJANGO_LIVE and not DJANGO_DEBUG:
# print("SECURE SETTINGS")
# SECURE_HSTS_SECONDS = True
# SECURE_HSTS_PRELOAD = True

CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
# CSRF_COOKIE_SECURE = True
# SESSION_COOKIE_SECURE = True

SECURE_SSL_REDIRECT = True
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
# SECURE_SSL_REDIRECT = True
# SECURE_HSTS_INCLUDE_SUBDOMAINS = True

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'

print("DJANGO_LIVE:", DJANGO_LIVE)
print("DJANGO_DEBUG:", DJANGO_DEBUG)

0 comments on commit 01fa661

Please sign in to comment.