Skip to content

Commit

Permalink
el-1975: another attempted fix for allowed_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahern committed Feb 12, 2025
1 parent 2f59850 commit 711624e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion fala/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def root(*x):
}

DEFAULT_ALLOWED_HOSTS = ".fala.dsd.io .find-legal-advice.justice.gov.uk"
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", DEFAULT_ALLOWED_HOSTS).split(",")
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", DEFAULT_ALLOWED_HOSTS)

# Split correctly to handle both space-separated and comma-separated values
ALLOWED_HOSTS = ALLOWED_HOSTS.replace(" ", ",").split(",")

TIME_ZONE = "UTC"

Expand Down
2 changes: 1 addition & 1 deletion helm_deploy/laa-fala/values/fala-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ laalaa_api:
host: "https://laa-legal-adviser-api-staging.apps.live-1.cloud-platform.service.justice.gov.uk"

# Accept any subdomain that ends in the following
allowed_hosts: ".cloud-platform.service.justice.gov.uk .staging.find-legal-advice.justice.gov.uk"
allowed_hosts: ".laa-fala-staging.apps.live-1.cloud-platform.service.justice.gov.uk .staging.find-legal-advice.justice.gov.uk"

autoscaling:
enabled: false
Expand Down

0 comments on commit 711624e

Please sign in to comment.