Skip to content
Snippets Groups Projects

Make gitlab-git-http-server work with nginx

Closed Stan Hu requested to merge add-rule-for-gitlab-git-http-server into master
+ 7
0
Compare changes
  • Side-by-side
  • Inline
pid /home/git/gitlab/tmp/pids/nginx.pid;
worker_processes 1;
daemon off;
error_log stderr;
@@ -20,6 +21,8 @@ http {
keepalive_timeout 65;
#gzip on;
proxy_temp_path /home/git/gitlab/tmp/nginx;
upstream gitlab {
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket fail_timeout=0;
}
@@ -35,5 +38,9 @@ http {
location / {
proxy_pass http://gitlab;
}
location ~ [-\/\w\.]+\.git\/ {
proxy_pass http://gitlab-git-http-server;
}
}
}
Loading