mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-28 23:19:30 +01:00
reduce recommended bcrypt cost to the lowest allowed value
Two objectives: 1. Reduce thundering-herd effects on server restart (a cost of 4 should be approximately 1 millisecond of CPU time per reconnecting client) 2. Speed up mobile reattach as much as possible (see also #1420)
This commit is contained in:
parent
2e7cf3cc1e
commit
e191e67632
@ -372,7 +372,8 @@ accounts:
|
|||||||
max-attempts: 30
|
max-attempts: 30
|
||||||
|
|
||||||
# this is the bcrypt cost we'll use for account passwords
|
# this is the bcrypt cost we'll use for account passwords
|
||||||
bcrypt-cost: 9
|
# (note that 4 is the lowest value allowed by the bcrypt library)
|
||||||
|
bcrypt-cost: 4
|
||||||
|
|
||||||
# length of time a user has to verify their account before it can be re-registered
|
# length of time a user has to verify their account before it can be re-registered
|
||||||
verify-timeout: "32h"
|
verify-timeout: "32h"
|
||||||
|
@ -344,7 +344,8 @@ accounts:
|
|||||||
max-attempts: 30
|
max-attempts: 30
|
||||||
|
|
||||||
# this is the bcrypt cost we'll use for account passwords
|
# this is the bcrypt cost we'll use for account passwords
|
||||||
bcrypt-cost: 9
|
# (note that 4 is the lowest value allowed by the bcrypt library)
|
||||||
|
bcrypt-cost: 4
|
||||||
|
|
||||||
# length of time a user has to verify their account before it can be re-registered
|
# length of time a user has to verify their account before it can be re-registered
|
||||||
verify-timeout: "32h"
|
verify-timeout: "32h"
|
||||||
|
Loading…
Reference in New Issue
Block a user