File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
common/etc/nginx/templates Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ server {
3737 add_header Access-Control-Allow-Origin *;
3838
3939 keepalive_timeout 120s;
40- proxy_read_timeout 120s ;
41- proxy_connect_timeout 120s ;
40+ proxy_read_timeout 300s ;
41+ proxy_connect_timeout 30s ;
4242 proxy_send_timeout 120s;
4343 send_timeout 120s;
4444
Original file line number Diff line number Diff line change @@ -8,4 +8,10 @@ upstream storage_urls {
88 # Be sure to specify the port in the S3_SERVER and be sure that port
99 # corresponds to the https/http in the proxy_pass directive.
1010 server ${S3_SERVER}:${S3_SERVER_PORT};
11+
12+ # Keep idle connections open to S3 for better performance
13+ # This is especially important for serving many small files (e.g., Zoomify tiles)
14+ keepalive 100;
15+ keepalive_timeout 300s;
16+ keepalive_requests 1000;
1117}
Original file line number Diff line number Diff line change @@ -10,4 +10,10 @@ upstream storage_urls {
1010 # Be sure to specify the port in the S3_SERVER and be sure that port
1111 # corresponds to the https/http in the proxy_pass directive.
1212 server ${S3_SERVER}:${S3_SERVER_PORT} resolve;
13+
14+ # Keep idle connections open to S3 for better performance
15+ # This is especially important for serving many small files (e.g., Zoomify tiles)
16+ keepalive 100;
17+ keepalive_timeout 300s;
18+ keepalive_requests 1000;
1319}
You can’t perform that action at this time.
0 commit comments