Files
infrastructure/roles/aurweb/templates/cgitrc.j2
Leonidas SpyropoulosandChristian Heusel 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

36 lines
846 B
Django/Jinja

virtual-root=/cgit/
clone-prefix=https://{{ aurweb_domain }}
noheader=0
favicon=/static/images/favicon.ico
logo=
css=/static/css/cgit.css
snapshots=tar.gz
readme=:README.md
readme=:README
enable-index-owner=0
enable-index-links=1
enable-switch-form=0
noplainemail=1
cache-root=/var/cache/cgit-aurweb
cache-size=10000
cache-dynamic-ttl=15
cache-repo-ttl=15
cache-root-ttl=60
cache-scanrc-ttl=120
cache-static-ttl=60
root-title=AUR Package Repositories
root-desc=Web interface to the AUR Package Repositories
header={{ aurweb_dir }}/static/html/cgit/header.html
footer={{ aurweb_dir }}/static/html/cgit/footer.html
max-repodesc-length=50
max-blob-size=2048
max-stats=year
enable-http-clone=1
source-filter=/usr/lib/cgit-aurweb/filters/syntax-highlighting.sh
repo.url=aur.git
repo.path={{ aurweb_dir }}/aur.git
repo.desc=AUR Package Repositories