Skip to content

Commit

Permalink
Final configuration changes for beta deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Feb 26, 2021
1 parent 579b8a9 commit c270625
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DEV_ENV =
ALLOWED_HOSTS =
SECRET_KEY =

VATSIM_CONNECT_CLIENT_ID =
Expand Down
12 changes: 10 additions & 2 deletions zhu_core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,17 @@
SECRET_KEY = os.getenv('SECRET_KEY', 'evrf9qiqh6dnaad+i10r!vcaz2dx1@37779vp0sh5x1147f%pg')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.getenv('DEV_ENV', '') == 'True'

ALLOWED_HOSTS = ['api.zhuartcc.devel']
SECURE_HSTS_SECONDS = os.getenv('DEV_ENV', '') == 'False'

SECURE_SSL_REDIRECT = os.getenv('DEV_ENV', '') == 'False'

SECURE_HSTS_INCLUDE_SUBDOMAINS = os.getenv('DEV_ENV', '') == 'False'

SECURE_HSTS_PRELOAD = os.getenv('DEV_ENV', '') == 'False'

ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '').split(',')


# Application definition
Expand Down

0 comments on commit c270625

Please sign in to comment.