Skip to content

Commit 679cb6f

Browse files
fix: improved timeouts for zoomify tiles
1 parent 99eb0e4 commit 679cb6f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

common/etc/nginx/templates/default.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

oss/etc/nginx/templates/upstreams.conf.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

plus/etc/nginx/templates/upstreams.conf.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)