Files
musiclist-server/musiclist/settings/prod.py
2020-06-03 15:59:27 -04:00

24 lines
557 B
Python

from . import *
DEBUG = False
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')
ALLOWED_HOSTS = ['musiclist-api.danielcortes.xyz']
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = [
'musiclist.danielcortes.xyz',
]
CORS_ORIGIN_REGEX_WHITELIST = [
'localhost((:\d)\d{0,3})?',
'127.0.0.1((:\d)\d{0,3})?',
]
"""Security"""
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_REFERRER_POLICY = 'strict-origin'