Skip to content

Commit 0046b1a

Browse files
authored
Merge pull request #219 from dtinit/GPC/update-production-allowed-hosts
GCP: update production setting to include Cloud Run default URL
2 parents 65ac047 + 7afa764 commit 0046b1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testbed/settings/production.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
DEBUG = False
88
ALLOWED_SEED_COMMAND = False
99
SECRET_KEY = env.str("DJANGO_SECRET_KEY")
10-
ALLOWED_HOSTS = [".run.app"] # Temporary in order to get Cloud Run default
11-
SITE_URL = ""
10+
ALLOWED_HOSTS = ["activitypub-testbed-prod-run-512458093489.us-central1.run.app"]
11+
SITE_URL = "https://activitypub-testbed-prod-run-512458093489.us-central1.run.app"
1212

1313
# PostgreSQL for production
1414
DATABASES = {"default": env.db_url("DJ_DATABASE_CONN_STRING")}

0 commit comments

Comments
 (0)