blob: f31ec08877deb5919d97416de2afec046e78cd3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
server {
server_name git.eug-vs.xyz
root /usr/share/cgit ;
try_files $uri @cgit ;
location @cgit {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
fastcgi_param PATH_INFO $request_uri;
fastcgi_param QUERY_STRING $query_string;
fastcgi_pass unix:/run/fcgiwrap.socket;
}
# Serve static files
location ~* ^.+\.(css|png|ico)$ {
root /usr/share/cgit;
expires 30d;
}
}
|