blob: 456173bd8fcea8a533f7937b63ba0124e248dab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
server {
listen {{ services.git.port }};
listen [::]:{{ services.git.port }};
server_name {{ ( subdomains | selectattr('service', 'eq', 'git') | first ).full_domain }};
root /usr/share/webapps/cgit;
try_files $uri @cgit;
location @cgit {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
fastcgi_param HTTP_HOST $server_name;
fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock;
}
}
|