aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/templates/etc_nginx_sites-available_cgit.j2
blob: 6678e47cd5b161e2e017f47ba6b889427162747f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

server {
    server_name {{ cgit_hostname }};
    root /srv/http/cgit;

    location / {
        try_files $uri @cgit;
    }

    location @cgit {
        index cgit.cgi;
        fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_param HTTP_HOST $server_name;
        fastcgi_param PATH_INFO $uri;
        fastcgi_param QUERY_INFO $uri;
        include "fastcgi_params";

    }
}