summaryrefslogtreecommitdiffstats
path: root/mkosi.skeleton/root/nginx.git.dnns.no
blob: a43e4fb2fdd55a823446fe110cbc047ff6d8efce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
server {
    listen 8305 default_server;
    listen [::]:8305 default_server;
    server_name git.dnns.no;

    access_log /var/log/nginx/git.dnns.no-access.log;
    error_log /var/log/nginx/git.dnns.no-error.log;

    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;
    }
}