Skip to content

Commit

Permalink
Merge branch 'main' into feature/run-e2e-in-cd-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
brunns committed Jun 4, 2024
2 parents 4f819b4 + 7a87d25 commit e7533a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion django_app/redbox_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
env = environ.Env()

SECRET_KEY = env.str("DJANGO_SECRET_KEY")
ENVIRONMENT = Environment[env.str("ENVIRONMENT")]
ENVIRONMENT = Environment[env.str("ENVIRONMENT").upper()]
WEBSOCKET_SCHEME = "ws" if ENVIRONMENT.is_local() else "wss"

# SECURITY WARNING: don't run with debug turned on in production!
Expand Down Expand Up @@ -142,6 +142,12 @@
LOGIN_REDIRECT_URL = "homepage"
LOGIN_URL = "sign-in"

HOST = (
"redbox.ai.cabinetoffice.gov.uk"
if ENVIRONMENT == "prod"
else f"redbox-{ENVIRONMENT.lower()}.ai.cabinetoffice.gov.uk"
)


# CSP settings https://content-security-policy.com/
# https://django-csp.readthedocs.io/
Expand Down

0 comments on commit e7533a0

Please sign in to comment.