blob: d3090579b9f19c43ac1b5bfa01dcf6df41d1981f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"
}
|