summaryrefslogtreecommitdiffstats
path: root/mkosi.extra/etc/nginx/sites-available/cgit
blob: c243ec9990ad530b2b2dec89082f80cb48e9067e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
server {
    listen 8305 default_server;
    listen [::]:8305 default_server;
    server_name cgit;

    location / {
        fastcgi_pass    unix:/run/fcgiwrap.socket;
        fastcgi_param   SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
        fastcgi_param   PATH_INFO       $uri;
        fastcgi_param   QUERY_STRING    $args;
    }

    location /cgit {
    	alias /usr/share/cgit;
    }
}