aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker/frontend/etc/nginx/conf.d/default.conf
blob: 4dd9402ab3fee35e7aa8373cf1bc43efd213d5de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;

    location / {
        index index.html;
    }

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

    location /git/ {
        include fastcgi_params;
        fastcgi_pass unix:/run/fcgiwrap.sock;

        fastcgi_param CGIT_CONFIG /etc/cgit/cgitrc;
        fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;

        fastcgi_split_path_info ^(/git/?)(.+)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}