Skip to content

Commit

Permalink
Correct ADDITIONAL_DOMAINS to ALTERNATIVE_DOMAINS (#3892)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Mar 11, 2024
1 parent eae8c19 commit 520cd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/conf/settings/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
CANONICAL_ORIGIN: str = f"{_proto}://{CANONICAL_DOMAIN}"

# Additional domains we serve for this API instance, e.g., `api-production.` subdomain for production
ADDITIONAL_DOMAINS: list[str] = config(
"ADDITIONAL_DOMAINS", default="", cast=lambda x: x.split(",")
ALTERNATIVE_DOMAINS: list[str] = config(
"ALTERNATIVE_DOMAINS", default="", cast=lambda x: x.split(",")
)

ALL_DOMAINS = [CANONICAL_DOMAIN] + ADDITIONAL_DOMAINS
ALL_DOMAINS = [CANONICAL_DOMAIN] + ALTERNATIVE_DOMAINS

ALLOWED_HOSTS = [
# Strip ports off hosts, as ALLOWED_HOSTS does not work with ports, e.g., `localhost:8000` needs to be just `localhost`
Expand Down

0 comments on commit 520cd7a

Please sign in to comment.