Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Aug 12, 2024
1 parent 562d5e1 commit 6142b72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ DATABASE_URL=postgres://[email protected]/dienst2?atomic_requests=True
CACHE_URL=dummycache://
GOOGLE_SERVICE_ACCOUNT_DELEGATED_USER="[email protected]"
GOOGLE_IAP_AUDIENCE=
CSRF_TRUSTED_ORIGINS=http://localhost:8000
1 change: 1 addition & 0 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ CACHE_URL=dummycache://
INTERNAL_IPS=127.0.0.1,172.18.0.1
GOOGLE_SERVICE_ACCOUNT_DELEGATED_USER="[email protected]"
GOOGLE_IAP_AUDIENCE=/projects/966138216790/apps/wisvch
CSRF_TRUSTED_ORIGINS=http://localhost:8000
3 changes: 3 additions & 0 deletions dienst2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"])
INTERNAL_IPS = env.list("INTERNAL_IPS", default="")
CSRF_TRUSTED_ORIGINS = env.list(
"CSRF_TRUSTED_ORIGINS", default=["https://dienst2.ch.tudelft.nl"]
)
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

DATABASES = {"default": env.db()}
Expand Down

0 comments on commit 6142b72

Please sign in to comment.