2017-08-23 10:59:17 +00:00
|
|
|
"""
|
|
|
|
Django production settings
|
|
|
|
"""
|
|
|
|
|
|
|
|
DEBUG = os.getenv('DEBUG', False)
|
|
|
|
|
|
|
|
SECRET_KEY = os.getenv('SECRET_KEY')
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [os.getenv('ALLOWED_HOSTS', '*')]
|
|
|
|
|
|
|
|
# Domain configuration:
|
|
|
|
# - if you have a specific domain to secure, change ALLOWED_HOSTS like this:
|
|
|
|
# ALLOWED_HOSTS = ['domain.tld', 'domain.tld.']
|
|
|
|
# - if you use a proxy like Nginx, you need to add this line into config:
|
|
|
|
# `proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`
|
|
|
|
USE_X_FORWARDED_HOST = True
|
2017-09-07 16:27:10 +00:00
|
|
|
|
|
|
|
# CORS: as we only need to acces API, a regular expression is enough
|
|
|
|
CORS_URLS_REGEX = r'^/api/.*$'
|