Skip to content

Commit 65ac047

Browse files
authored
Merge pull request #218 from dtinit/GCP/update-staging-allowed-hosts
GCP: update staging setting to include Cloud Run default URL
2 parents 3137bda + 42565d3 commit 65ac047

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

requirements.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ requests==2.32.3
2222
rich==14.0.0
2323
ruff==0.11.2
2424
structlog==25.2.0
25-
26-
# Production dependencies for Cloud Run deployment
27-
gunicorn==23.0.0 # Production WSGI HTTP server
28-
django-storages[google]==1.14.4 # Google Cloud Storage backend for Django
29-
google-cloud-storage==2.18.2 # Google Cloud Storage client library
30-
google-cloud-logging==3.11.3 # Google Cloud Logging integration
31-
django-google-structured-logger==2.8.10 # Structured logging formatter for GCP
25+
gunicorn==23.0.0
26+
django-storages[google]==1.14.4
27+
google-cloud-storage==2.18.2
28+
google-cloud-logging==3.11.3
29+
django-google-structured-logger==2.8.10

testbed/settings/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"BACKEND": "storages.backends.gcloud.GoogleCloudStorage",
3939
"OPTIONS": {
4040
"bucket_name": GS_BUCKET_NAME,
41-
"location": "static", # Same as staticfiles!
41+
"location": "static",
4242
}
4343
}
4444
}

testbed/settings/staging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from .production import *
33

44
ENVIRONMENT = "staging"
5-
ALLOWED_HOSTS = [".run.app"] # Temporary in order to get Cloud Run default
6-
SITE_URL = ""
5+
ALLOWED_HOSTS = ["activitypub-testbed-stg-run-737003321709.us-central1.run.app"]
6+
SITE_URL = "https://activitypub-testbed-stg-run-737003321709.us-central1.run.app"
77
CSRF_TRUSTED_ORIGINS = ['https://' + url for url in ALLOWED_HOSTS]
88
GS_BUCKET_NAME = "activitypub-testbed-stg-storage"
99

0 commit comments

Comments
 (0)