-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
36 lines (28 loc) · 913 Bytes
/
nginx.conf
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
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
user root;
events {
worker_connections 1024;
}
http {
server {
listen *:80;
root /www/empty/;
index index.html;
server_name $hostname;
access_log /var/log/nginx/access.log;
location ~ /git(/.*) {
# Set chunks to unlimited, as the bodies can be huge
client_max_body_size 0;
fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend;
include fastcgi_params;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT /git;
fastcgi_param PATH_INFO $1;
# Forward REMOTE_USER as we want to know when we are authenticated
fastcgi_param REMOTE_USER $remote_user;
fastcgi_pass unix:/run/fcgi.sock;
}
}
}