File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,19 @@ server {
2828 proxy_set_header X-Forwarded-Proto $scheme;
2929 }
3030
31- # Docker registry API proxy
31+ # Docker registry API proxy (stream large PATCH bodies, long timeouts)
3232 location /v2 {
3333 proxy_pass ${BACKEND_UPSTREAM};
3434 proxy_http_version 1.1;
35- proxy_set_header Upgrade $http_upgrade;
36- proxy_set_header Connection 'upgrade';
3735 proxy_set_header Host $host;
38- proxy_cache_bypass $http_upgrade;
3936 proxy_set_header X-Real-IP $remote_addr;
4037 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
4138 proxy_set_header X-Forwarded-Proto $scheme;
39+ # Stream request body to backend instead of buffering (avoids retry on server-to-server push)
40+ proxy_request_buffering off;
41+ client_max_body_size 0;
42+ proxy_connect_timeout 900s;
43+ proxy_send_timeout 900s;
44+ proxy_read_timeout 900s;
4245 }
4346}
You can’t perform that action at this time.
0 commit comments