From 0c03f5b5e5e7b57dd6d617fa7513d7f5e807e877 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 19 Oct 2026 18:16:09 -0700 Subject: Rename cgit to git and acme to ssl for httpd --- roles/obsd_cgit/templates/httpd.d/git.conf.j2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 roles/obsd_cgit/templates/httpd.d/git.conf.j2 (limited to 'roles/obsd_cgit/templates/httpd.d/git.conf.j2') diff --git a/roles/obsd_cgit/templates/httpd.d/git.conf.j2 b/roles/obsd_cgit/templates/httpd.d/git.conf.j2 new file mode 100644 index 0000000..d309057 --- /dev/null +++ b/roles/obsd_cgit/templates/httpd.d/git.conf.j2 @@ -0,0 +1,20 @@ +server "{{ obsd_cgit_domain }}" { + listen on egress tls port 443 + tls { + certificate "/etc/ssl/{{ obsd_cgit_domain }}.fullchain.pem" + key "/etc/ssl/private/{{ obsd_cgit_domain }}.key" + } + + # Serve cgit static files (cgit.css, cgit.png) directly from disk + location "/cgit.*" { + root "/htdocs/cgit" + no fastcgi + } + + # Don't send a "Server: OpenBSD httpd" header. + no banner + + # Route any other cgit paths/actions via fastcgi + root "/htdocs/cgit/cgi-bin/cgit.cgi" + fastcgi socket "/run/slowcgi.sock" +} -- cgit v1.2.3