Restrict allowed hosts + switch DEBUG to false in prod
This commit is contained in:
parent
eb68228278
commit
e3cf1c0e75
1 changed files with 2 additions and 2 deletions
|
@ -24,9 +24,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||
SECRET_KEY = 'x*8q7sd14&a%cu95$h@jl&&#bb&j(j*-6h5!3atz*v%!zo3hd4'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = os.getenv('DJANGO_ENV', 'prod') == 'dev'
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
ALLOWED_HOSTS = ['localhost', 'workout.augendre.info', 'web', 'workout', 'workout-web']
|
||||
|
||||
# Application definition
|
||||
|
||||
|
|
Loading…
Reference in a new issue