Skip to content

Commit

Permalink
Get session ttl from environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Aug 22, 2023
1 parent ebed90b commit 5a2fc63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thin_egress_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def wrapper(*args, **kwargs):
algorithm=os.getenv('JWT_ALGO', 'RS256'),
public_key=None,
private_key=None,
cookie_name=os.getenv('JWT_COOKIENAME', JWT_COOKIE_NAME)
cookie_name=os.getenv('JWT_COOKIENAME', JWT_COOKIE_NAME),
session_ttl_in_hours=int(os.getenv('SESSION_TTL_HRS', 7 * 24)),
)
TEMPLATE_MANAGER = TemplateManager(conf_bucket, template_dir)

Expand Down

0 comments on commit 5a2fc63

Please sign in to comment.