change default cache times
This commit is contained in:
@@ -814,7 +814,8 @@ Default: `none`
|
|||||||
|
|
||||||
##### cache_logins
|
##### cache_logins
|
||||||
|
|
||||||
Cache successful/failed logins until expiration time
|
Cache successful/failed logins until expiration time. Enable this to avoid
|
||||||
|
overload of authentication backends.
|
||||||
|
|
||||||
Default: `false`
|
Default: `false`
|
||||||
|
|
||||||
@@ -822,13 +823,13 @@ Default: `false`
|
|||||||
|
|
||||||
Expiration time of caching successful logins in seconds
|
Expiration time of caching successful logins in seconds
|
||||||
|
|
||||||
Default: `5`
|
Default: `15`
|
||||||
|
|
||||||
##### cache_failed_logins_expiry
|
##### cache_failed_logins_expiry
|
||||||
|
|
||||||
Expiration time of caching failed logins in seconds
|
Expiration time of caching failed logins in seconds
|
||||||
|
|
||||||
Default: `60`
|
Default: `90`
|
||||||
|
|
||||||
##### htpasswd_filename
|
##### htpasswd_filename
|
||||||
|
|
||||||
|
|||||||
7
config
7
config
@@ -62,11 +62,14 @@
|
|||||||
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
|
# Value: none | htpasswd | remote_user | http_x_remote_user | ldap | denyall
|
||||||
#type = none
|
#type = none
|
||||||
|
|
||||||
# Cache successful logins for until expiration time
|
# Cache logins for until expiration time
|
||||||
#cache_logins = false
|
#cache_logins = false
|
||||||
|
|
||||||
# Expiration time for caching successful logins in seconds
|
# Expiration time for caching successful logins in seconds
|
||||||
#cache_logins_expiry = 5
|
#cache_successful_logins_expiry = 15
|
||||||
|
|
||||||
|
## Expiration time of caching failed logins in seconds
|
||||||
|
#cache_failed_logins_expiry = 90
|
||||||
|
|
||||||
# URI to the LDAP server
|
# URI to the LDAP server
|
||||||
#ldap_uri = ldap://localhost
|
#ldap_uri = ldap://localhost
|
||||||
|
|||||||
@@ -188,11 +188,11 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
|
|||||||
"help": "cache successful/failed logins for until expiration time",
|
"help": "cache successful/failed logins for until expiration time",
|
||||||
"type": bool}),
|
"type": bool}),
|
||||||
("cache_successful_logins_expiry", {
|
("cache_successful_logins_expiry", {
|
||||||
"value": "5",
|
"value": "15",
|
||||||
"help": "expiration time for caching successful logins in seconds",
|
"help": "expiration time for caching successful logins in seconds",
|
||||||
"type": int}),
|
"type": int}),
|
||||||
("cache_failed_logins_expiry", {
|
("cache_failed_logins_expiry", {
|
||||||
"value": "60",
|
"value": "90",
|
||||||
"help": "expiration time for caching failed logins in seconds",
|
"help": "expiration time for caching failed logins in seconds",
|
||||||
"type": int}),
|
"type": int}),
|
||||||
("htpasswd_filename", {
|
("htpasswd_filename", {
|
||||||
|
|||||||
Reference in New Issue
Block a user