Skip to content

Commit

Permalink
add SESSION_COOKIE_DOMAIN setting
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Dec 20, 2024
1 parent 7b7ba60 commit ca682a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
SECURE_PROXY_SSL_HEADER = os.environ.get("SECURE_PROXY_SSL_HEADER")
NEW_RELIC_CONFIG_FILE = os.environ.get("NEW_RELIC_CONFIG_FILE")
NEW_RELIC_ENVIRONMENT = os.environ.get("NEW_RELIC_ENVIRONMENT")
SESSION_COOKIE_DOMAIN = os.environ.get("SESSION_COOKIE_DOMAIN")

###
# databases
Expand Down
2 changes: 2 additions & 0 deletions app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
OSF_BASE_URL = env.OSF_BASE_URL.rstrip("/")
OSF_API_BASE_URL = env.OSF_API_BASE_URL.rstrip("/")
ALLOWED_RESOURCE_URI_PREFIXES = {OSF_BASE_URL}
SESSION_COOKIE_DOMAIN = env.SESSION_COOKIE_DOMAIN

if DEBUG:
# allow for local osf shenanigans
ALLOWED_RESOURCE_URI_PREFIXES.update(
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
OSF_BASE_URL: "http://192.168.168.167:5000"
OSF_API_BASE_URL: "http://192.168.168.167:8000"
OSF_AUTH_COOKIE_NAME: osf
SESSION_COOKIE_DOMAIN: localhost
AMQP_BROKER_URL: "amqp://guest:guest@rabbitmq:5672"
GRAVYVALET_ENCRYPT_SECRET: "this is fine"
ports:
Expand Down

0 comments on commit ca682a8

Please sign in to comment.