blob: 5a8a2060eb2380a99fc02ce249466e766e41bc5d (
plain) (
tree)
|
|
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location / {
include fastcgi_params;
fastcgi_pass unix:/run/fcgiwrap.sock;
fastcgi_param CGIT_CONFIG /etc/cgit/cgitrc;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
# This looks stupid. Can I substitute any variable for $fastcgi_path_info?
fastcgi_split_path_info ^(/?)(.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location /cgit/ {
alias /usr/share/cgit/;
}
}
|