blob: a7d0385e5cb920aa4270cc7a8cb97434adeea686 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
server "{{ cgit_domain }}" {
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
}
# Explicitly route root (/) to cgit via fastcgi
location "/" {
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"
}
|