Files
Leonidas Spyropoulos 34a1148d2d aurweb: set cgit cache in nginx
Add nginx `uwsgi_cache` in front of `/cgit/` with cache lock and short
TTLs. Add `processes` and safety knobs to `cgit.ini`. Enable cgit
RAM cache with `cache-size'. Stricter rate limit for cgit.

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2025-12-15 17:23:46 +01:00

17 lines
333 B
Django/Jinja

[uwsgi]
plugins = cgi
socket = {{ cgit_socket }}
chown-socket = {{ aurweb_user }}:http
chmod-socket = 770
processes = 4
threads = 2
enable-threads = true
thunder-lock = true
harakiri = 30
reload-on-rss = 200
daemonize = /var/log/uwsgi/cgit-aurweb.log
cgi = /usr/share/webapps/cgit-aurweb/cgit.cgi
uid = {{ aurweb_user }}
gid = http