summaryrefslogtreecommitdiff
path: root/nginx.conf
blob: 482d19ca3292921c83b1608235f47d7cc7d98382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
worker_processes 1;
events {
    worker_connections 1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;

    server {
        listen 80;
        server_name localhost;

        location / {
            fastcgi_pass unix:/var/run/fcgiwrap.sock;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
            fastcgi_param PATH_INFO $uri;
            fastcgi_param QUERY_STRING $query_string;
            fastcgi_param GIT_PROJECT_ROOT /var/www/git;
            fastcgi_param CGIT_CONFIG /etc/cgitrc;
        }

        location /cgit.css {
            alias /usr/share/webapps/cgit/cgit.css;
        }

        location /cgit.png {
            alias /usr/share/webapps/cgit/cgit.png;
        }

        location /favicon.ico {
            alias /usr/share/webapps/cgit/favicon.ico;
        }

        location /robots.txt {
            alias /usr/share/webapps/cgit/robots.txt;
        }
    }
}