Skip to content

Commit 3424718

Browse files
committed
Add api.musiccpr.org to allowed hosts
1 parent c5a4c9c commit 3424718

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/settings/local.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"default": env.db("DATABASE_URL", default="sqlite:///db.sqlite"),
1515
}
1616
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
17-
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1", "dev-api.musiccpr.org"])
17+
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1", "dev-api.musiccpr.org", "api.musiccpr.org"])
1818

1919
# CACHES
2020
# ------------------------------------------------------------------------------

config/settings/production.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
88
SECRET_KEY = env("DJANGO_SECRET_KEY")
99
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
10-
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["https://tele.band", "dev-api.musiccpr.org"])
10+
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["https://tele.band", "dev-api.musiccpr.org", "api.musiccpr.org"])
1111

1212
# DATABASES
1313
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)