fix: Git push HTTP 413 — 添加 client_max_body_size 和代理超时配置

This commit is contained in:
gitadmin 2026-06-03 09:58:21 +08:00
parent 1583d0a581
commit 8fac183661
1 changed files with 5 additions and 0 deletions

View File

@ -12,5 +12,10 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
client_max_body_size 0;
proxy_request_buffering off;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}