From 37304c0b775d3701318fcdb23f205ecddd47e6f0 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 11 Oct 2026 11:31:02 -0700 Subject: 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. --- roles/obsd_cgit/templates/cgitrc.j2 | 2 +- roles/obsd_cgit/templates/httpd.d/cgit.conf.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/obsd_cgit/templates') diff --git a/roles/obsd_cgit/templates/cgitrc.j2 b/roles/obsd_cgit/templates/cgitrc.j2 index b826ab3..9bb23e5 100644 --- a/roles/obsd_cgit/templates/cgitrc.j2 +++ b/roles/obsd_cgit/templates/cgitrc.j2 @@ -16,7 +16,7 @@ enable-http-clone=0 snapshots=zip about-filter=/bin/convert-markdown -head-include=/cgit/head.html +head-include={{ obsd_cgit_htdocs_dir }}/head.html max-atom-items=100 max-stats=year 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" } -- cgit v1.2.3