aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_cgit
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obsd_cgit')
-rw-r--r--roles/obsd_cgit/templates/httpd.d/cgit.conf.j227
1 files changed, 13 insertions, 14 deletions
diff --git a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2 b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
index 206525b..0b903e4 100644
--- a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
+++ b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
@@ -1,21 +1,20 @@
server "{{ cgit_domain }}" {
- listen on egress tls port 443
- tls {
- certificate "/etc/ssl/{{ cgit_domain }}.fullchain.pem"
- key "/etc/ssl/private/{{ cgit_domain }}.key"
- }
+ listen on egress tls port 443
+ tls {
+ certificate "/etc/ssl/{{ cgit_domain }}.fullchain.pem"
+ key "/etc/ssl/private/{{ cgit_domain }}.key"
+ }
- # Serve cgit static files (cgit.css, cgit.png) directly from disk
- location "/cgit.*" {
- root "/cgit"
- no fastcgi
- }
+ # Serve cgit static files (cgit.css, cgit.png) directly from disk
+ location "/cgit.*" {
+ root "/cgit"
+ no fastcgi
+ }
# Don't send a "Server: OpenBSD httpd" header.
no banner
- # Route any other cgit paths/actions via fastcgi
- root "/cgi-bin/cgit.cgi"
- fastcgi socket "/run/slowcgi.sock"
+ # Route any other cgit paths/actions via fastcgi
+ root "/cgi-bin/cgit.cgi"
+ fastcgi socket "/run/slowcgi.sock"
}
-