Merge pull request #1668 from pbiering/login-cache

add optional cache for login result and htpasswd + fixes

final  version will be updated to 3.4.0 next
This commit is contained in:
Peter Bieringer 2025-01-03 07:51:06 +00:00 committed by GitHub
commit b0d56f898b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 461 additions and 60 deletions

12
config
View file

@ -62,6 +62,15 @@
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
#type = none
# Cache logins for until expiration time
#cache_logins = false
# Expiration time for caching successful logins in seconds
#cache_successful_logins_expiry = 15
## Expiration time of caching failed logins in seconds
#cache_failed_logins_expiry = 90
# URI to the LDAP server
#ldap_uri = ldap://localhost
@ -103,6 +112,9 @@
# bcrypt requires the installation of 'bcrypt' module.
#htpasswd_encryption = autodetect
# Enable caching of htpasswd file based on size and mtime_ns
#htpasswd_cache = False
# Incorrect authentication delay (seconds)
#delay = 1