summaryrefslogtreecommitdiff
path: root/cgit/host/root/usr/local/etc/nginx/nginx.conf
blob: f779a680fe05e14a462b237db29b12ea62d8d287 (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

user nobody;
worker_processes 1;

events {
	worker_connections 1024;
}

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

	server {
		listen 80 default_server;

		root /usr/local/www/cgit;
		try_files $uri @cgit;

		location @cgit {
			fastcgi_pass	unix:/var/run/fcgiwrap/fcgiwrap.sock;
			include		fastcgi_params;
			fastcgi_param	SCRIPT_FILENAME /usr/local/www/cgit/cgit.cgi;
			fastcgi_param	PATH_INFO	$uri;
			fastcgi_param	QUERY_STRING	$args;
			fastcgi_param	HTTP_HOST	$server_name;
		}
	}
}