Skip to content

Commit

Permalink
Merge pull request #741 from asfadmin/rew/session-ttl-parameter
Browse files Browse the repository at this point in the history
Get session ttl from environment variable
  • Loading branch information
reweeden authored Oct 9, 2023
2 parents 0c9a530 + ba59850 commit 3e9b718
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 @@ -101,7 +101,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 3e9b718

Please sign in to comment.