aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-11 11:31:02 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:51 -0700
commit37304c0b775d3701318fcdb23f205ecddd47e6f0 (patch)
tree339d5959d031adc6bb150db5dad1907a6bbd6aa8 /roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
parentAdd support for downloading zip files of repo snapshots (diff)
downloadsite-configs-37304c0b775d3701318fcdb23f205ecddd47e6f0.zip
Adjust cgit files to be located in /htdocs/cgit
Given I want to run multiple sites from this host, this should make it a little clearer by having *most* of the related files all in one place. We still have /conf/cgitrc and /cache/cgit, but I think that is okay and clear enough.
Diffstat (limited to 'roles/obsd_cgit/templates/httpd.d/cgit.conf.j2')
-rw-r--r--roles/obsd_cgit/templates/httpd.d/cgit.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2 b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
index a10b880..d309057 100644
--- a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
+++ b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
@@ -7,7 +7,7 @@ server "{{ obsd_cgit_domain }}" {
# Serve cgit static files (cgit.css, cgit.png) directly from disk
location "/cgit.*" {
- root "/cgit"
+ root "/htdocs/cgit"
no fastcgi
}
@@ -15,6 +15,6 @@ server "{{ obsd_cgit_domain }}" {
no banner
# Route any other cgit paths/actions via fastcgi
- root "/cgi-bin/cgit.cgi"
+ root "/htdocs/cgit/cgi-bin/cgit.cgi"
fastcgi socket "/run/slowcgi.sock"
}