summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/git-ssl.site
blob: 673ced5916f5b865604ed3f50b7719976f5b4751 (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
server {
        listen 443 ssl;
	listen   [::]:443 ssl; ## listen for ipv4; this line is default and implied
	# listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	root /var/git;
	server_name git.taler.net;
        include conf.d/talerssl;
        
        access_log /var/log/nginx/git.taler.net_access.log;
        error_log /var/log/nginx/git.taler.net_error.log notice;

	location ~ ^(.*?)\.git/(HEAD|info/refs|objects/.*|git-upload-pack)$ {
	    include /etc/nginx/fastcgi_params;
	    fastcgi_param   SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
	    fastcgi_param   GIT_PROJECT_ROOT        /home/git/repositories;
	    fastcgi_param   PATH_INFO               $uri;
	    fastcgi_pass unix:/var/run/fcgiwrap.socket;
	}

	location /cgit {
	    root /var/www;
	}

	location / {
	    include /etc/nginx/fastcgi_params;
	    fastcgi_param   SCRIPT_FILENAME /var/www/cgit/cgit.cgi;
	    fastcgi_param   PATH_INFO               $uri;
	    fastcgi_pass unix:/var/run/fcgiwrap.socket;
	}
}