Git Bridge: Add git integration

This commit is contained in:
yu-i-i
2026-03-14 02:33:19 +01:00
parent 4239c2f3a8
commit 486460f599
25 changed files with 1571 additions and 5 deletions

View File

@@ -21,6 +21,22 @@ server {
proxy_send_timeout 10m;
}
location ^~ /git/ {
resolver_timeout 2s;
resolver 127.0.0.11 valid=10s;
set $git_upstream http://git-bridge:8000;
rewrite ^/git/(.*)$ /$1 break;
proxy_pass $git_upstream;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 10m;
proxy_send_timeout 10m;
}
location /socket.io {
proxy_pass http://127.0.0.1:3026;
proxy_http_version 1.1;