worker_processes 1; pid /tmp/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; gzip on; client_body_temp_path /tmp/client_temp; proxy_temp_path /tmp/proxy_temp_path; fastcgi_temp_path /tmp/fastcgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; # Cgit server { listen 8080; server_name git.*; root /usr/share/webapps/cgit; try_files $uri @cgit; location @cgit { include fastcgi_params; # TODO: move fcgiwrap.sock out of /tmp fastcgi_pass unix:/tmp/fcgiwrap.socket; fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi; fastcgi_param PATH_INFO $uri; fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; } } }