config: add options.salt_rounds

During development, the lower this value is (must be >= 4)
equals faster User generation. This is particularly useful
for running tests.

In production, a higher value (like 12 which is used by various
popular frameworks) should be used.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-06-25 21:22:54 -07:00
parent a702f7bc0b
commit d8556b0d86
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,7 @@ localedir = /srv/http/aurweb/aur.git/web/locale/
cache = none cache = none
cache_pkginfo_ttl = 86400 cache_pkginfo_ttl = 86400
memcache_servers = 127.0.0.1:11211 memcache_servers = 127.0.0.1:11211
salt_rounds = 12
[ratelimit] [ratelimit]
request_limit = 4000 request_limit = 4000

View file

@ -26,6 +26,8 @@ aur_location = http://127.0.0.1:8080
disable_http_login = 0 disable_http_login = 0
enable-maintenance = 0 enable-maintenance = 0
localedir = YOUR_AUR_ROOT/web/locale localedir = YOUR_AUR_ROOT/web/locale
; In production, salt_rounds should be higher; suggested: 12.
salt_rounds = 4
[notifications] [notifications]
; For development/testing, use /usr/bin/sendmail ; For development/testing, use /usr/bin/sendmail