summaryrefslogtreecommitdiffstats
path: root/roles/git/files/etc/nginx/sites-available/gitweb
blob: 3814145b819d7bd7deb9dd2470bd3ee729895041 (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
42
43
44
45
46
47
48
server {
    listen      80;
    listen [::]:80;

    server_name  gitweb.fripost.org;

    access_log /var/log/nginx/gitweb.access.log;
    error_log  /var/log/nginx/gitweb.error.log info;

    location ^~ /static/ {
        alias /usr/share/gitweb/static/;
    }

    try_files $uri @fcgi;
    location @fcgi {
        root /var/lib/gitolite/repositories;
        include fastcgi/params;
        fastcgi_pass unix:/run/gitweb.socket;
        gzip off;
    }
}


server {
    listen      443;
    listen [::]:443;

    server_name  gitweb.fripost.org;

    include ssl/config;
    ssl_certificate     /etc/nginx/ssl/git.fripost.org.pem;
    ssl_certificate_key /etc/nginx/ssl/git.fripost.org.key;

    access_log /var/log/nginx/gitweb.access.log;
    error_log  /var/log/nginx/gitweb.error.log info;

    location ^~ /static/ {
        alias /usr/share/gitweb/static/;
    }

    try_files $uri @fcgi;
    location @fcgi {
        root /var/lib/gitolite/repositories;
        include fastcgi/params;
        fastcgi_pass unix:/run/gitweb.socket;
        gzip off;
    }
}