Se utilizara settings as a package

Esto para poder hacer un deploy limpio con CI/CD

ME GUSTO COMO FUNCIONA ESO Y LO HABIA EVITADO HASTA AHORA!
This commit is contained in:
Daniel Cortes
2020-06-03 06:32:42 -04:00
parent b4b9dafc02
commit fcefb0950d
3 changed files with 50 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
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']
"""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'