Skip to content

Commit

Permalink
Allow configuration of cookie domain by env var (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c authored Apr 3, 2024
1 parent 00c4ff1 commit c8d9468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions confidential_backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

SESSION_TYPE = os.getenv("SESSION_TYPE", 'redis')
SESSION_REDIS = redis.from_url(os.getenv("SESSION_REDIS", "redis://127.0.0.1:6379"))
SESSION_COOKIE_DOMAIN = os.getenv("SESSION_COOKIE_DOMAIN")
SESSION_COOKIE_SAMESITE = os.getenv("SESSION_COOKIE_SAMESITE", 'Lax')
SESSION_COOKIE_SECURE = os.getenv("SESSION_COOKIE_SECURE", 'false').lower() == 'true'

Expand Down

0 comments on commit c8d9468

Please sign in to comment.