blob: 903d38c015a6567715e444523261e8fcf0a8ea7d (
plain)
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
|
# {{ ansible_managed }}
server {
listen 80;
listen [::]:80;
server_name {{ cgit_hostname }};
root /srv/http/cgit;
location / {
try_files $uri @cgit;
}
location @cgit {
index cgit.cgi;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param HTTP_HOST $server_name;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_INFO $uri;
include "fastcgi_params";
}
}
|