greenpau / caddy-security

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐
https://authcrunch.com/
Apache License 2.0
1.42k stars 70 forks source link

How to set a custom session timeout value? #317

Closed bfg100k closed 5 months ago

bfg100k commented 7 months ago

I'm implementing this module in a home environment and managed to get it up and running. However, I'm finding that the session times out rather quickly (less than 30mins for sure). Is there a setting I can specify to extend it? Ideally I would like days instead.

greenpau commented 5 months ago

@bfg100k , you are probably looking for “lifetime” settings. Please see https://github.com/authcrunch/authcrunch.github.io/blob/c6d02968980595021863c223369f9f6cb31992b6/assets/solutions/A00003/Caddyfile#L36

That’s 3600 seconds or 1 hour. Use 7200 for 2 hours.