aboutsummaryrefslogtreecommitdiffstats
path: root/image/Caddyfile
blob: b50dccc92d3f09a869e281ace7a1d2ffeff8f503 (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
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 SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi
      env PATH_INFO {http.request.uri}
      env QUERY_STRING {query}
      # env GIT_HTTP_EXPORT_ALL 1
      # env GIT_PROJECT_ROOT /var/lib/git/repositories
      # env HOME /var/lib/git
    }
  }
}