Skip to content

Commit

Permalink
wild card allowed hosts when on azure
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed May 29, 2024
1 parent d339661 commit c5bd157
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rcpch_nhs_organisations/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
"0.0.0.0",
]

if os.getenv("WEBSITE_SITE_NAME"):
ALLOWED_HOSTS = ["*"]
else:
ALLOWED_HOSTS = [
"127.0.0.1",
"localhost",
"0.0.0.0",
]

# Application definition

INSTALLED_APPS = [
Expand Down

0 comments on commit c5bd157

Please sign in to comment.