summaryrefslogtreecommitdiff
path: root/roles/cgit/files/cgit.conf
blob: ffa1fba34dcea29cfd52a92442622f723222302b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Source: https://wiki.archlinux.org/title/cgit

root /usr/share/webapps/cgit;

location = /favicon.ico {
    return 404;
}

try_files $uri @cgit;

location @cgit {
    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
    fastcgi_param PATH_INFO $uri;
    fastcgi_param QUERY_STRING $args;
    fastcgi_param HTTP_HOST $server_name;

    fastcgi_pass unix:/run/fcgiwrap.sock;
}