Skip to content

Commit

Permalink
Make defaults more secure; override at *-environments level
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Nov 2, 2023
1 parent ee266ff commit ec90e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confidential_backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

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

REQUEST_CACHE_URL = os.environ.get('REQUEST_CACHE_URL', 'redis://localhost:6379/0')
REQUEST_CACHE_EXPIRE = 24 * 60 * 60 # 24 hours
Expand Down

0 comments on commit ec90e36

Please sign in to comment.