mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-11-30 21:14:52 +01:00
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>
17 lines
333 B
Django/Jinja
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
|