aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/templates/etc_nginx_sites-available_cgit.j2
blob: 2ad43e3fd43b068e728ce24492fafc86a230171c (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 $document_root/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";

    }
}