Skip to content

Commit

Permalink
Merge pull request #4232 from broadinstitute/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hanars authored Jul 12, 2024
2 parents 03dfb86 + ea3836f commit 66997e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@
]

DEPLOYMENT_TYPE = os.environ.get('DEPLOYMENT_TYPE')
BASE_URL = os.environ.get("BASE_URL", "/")
if DEPLOYMENT_TYPE in {'prod', 'dev'}:
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
CSRF_TRUSTED_ORIGINS = [BASE_URL.rstrip('/')]
DEBUG = False
else:
DEBUG = True
Expand Down Expand Up @@ -299,7 +301,6 @@
SEQR_PRIVACY_VERSION = float(os.environ.get('SEQR_PRIVACY_VERSION', 1.1))
SEQR_TOS_VERSION = float(os.environ.get('SEQR_TOS_VERSION', 1.2))

BASE_URL = os.environ.get("BASE_URL", "/")
GA_TOKEN_ID = os.environ.get("GA_TOKEN_ID")

SLACK_TOKEN = os.environ.get("SLACK_TOKEN")
Expand Down

0 comments on commit 66997e9

Please sign in to comment.