blob: 56f89a09d10a265586a90ef11d5d57c856b3756d (
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
25
26
27
28
29
|
{
admin off
}
http:// {
route {
root * /var/lib/git/static
file_server {
pass_thru
}
}
route {
root * /usr/share/webapps/cgit
file_server {
pass_thru
}
}
reverse_proxy unix//run/fcgiwrap/fcgiwrap.sock {
transport fastcgi {
env DOCUMENT_ROOT /usr/share/webapps/cgit
env SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi
# see https://caddyserver.com/docs/json/apps/http/#docs
# env PATH_INFO {http.request.uri.path}
# env QUERY_STRING {http.request.uri.query}
}
}
}
|