Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 607 Bytes
server {
listen 80 default_server;
# listen 443 ssl;
# ssl_certificate /etc/nginx/certs/final.crt;
# ssl_certificate_key /etc/nginx/certs/private.key;
server_name localhost;
index cgit.cgi;
root /usr/share/webapps/cgit;
try_files $uri @cgit;
location @cgit {
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.socket;
include fastcgi_params;
}
}