]> WPIA git - infra.git/blob - modules/gitweb/templates/nginx.epp
b7db2d450e367bc9825b59b73c0005d0bf9e2fcd
[infra.git] / modules / gitweb / templates / nginx.epp
1 server {
2     listen       0.0.0.0:80;
3     listen       0.0.0.0:443 ssl;
4     server_name  code.<%=$systemDomain%>;
5
6     ssl_certificate /etc/ssl/private/gitweb.crt;
7     ssl_certificate_key /etc/ssl/private/gitweb.key;
8
9     location ~ "^/$" {
10         fastcgi_param  QUERY_STRING       $query_string;
11         fastcgi_param  REQUEST_METHOD     $request_method;
12         fastcgi_param  REQUEST_URI        $request_uri;
13         fastcgi_pass unix:/gitweb-socket/gitweb;
14     }
15     location /static {
16         alias /usr/share/gitweb/static;
17     }
18     location / {
19         root /srv/git;
20     }
21 }