mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
FastAPI: add redis integration
This includes the addition of the python-fakeredis package, used for stubbing python-redis when a user does not have a configured cache. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
96d1af9363
commit
91e769f603
7 changed files with 123 additions and 3 deletions
|
@ -36,11 +36,13 @@ enable-maintenance = 1
|
|||
maintenance-exceptions = 127.0.0.1
|
||||
render-comment-cmd = /usr/local/bin/aurweb-rendercomment
|
||||
localedir = /srv/http/aurweb/aur.git/web/locale/
|
||||
# memcache or apc
|
||||
; memcache, apc, or redis
|
||||
; memcache/apc are supported in PHP, redis is supported in Python.
|
||||
cache = none
|
||||
cache_pkginfo_ttl = 86400
|
||||
memcache_servers = 127.0.0.1:11211
|
||||
salt_rounds = 12
|
||||
redis_address = redis://localhost
|
||||
|
||||
[ratelimit]
|
||||
request_limit = 4000
|
||||
|
|
|
@ -28,10 +28,13 @@ enable-maintenance = 0
|
|||
localedir = YOUR_AUR_ROOT/web/locale
|
||||
; In production, salt_rounds should be higher; suggested: 12.
|
||||
salt_rounds = 4
|
||||
; See config.defaults comment about cache.
|
||||
cache = none
|
||||
; In docker, the memcached host is available. On a user's system,
|
||||
; this should be set to localhost (most likely).
|
||||
memcache_servers = memcached:11211
|
||||
; If cache = 'redis' this address is used to connect to Redis.
|
||||
redis_address = redis://127.0.0.1
|
||||
|
||||
[notifications]
|
||||
; For development/testing, use /usr/bin/sendmail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue