6
6
sendfile on ;
7
7
tcp_nopush on ;
8
8
tcp_nodelay on ;
9
- # Adjust server wide timeouts
10
9
keepalive_timeout 65 ;
11
- # Similar to the timeouts specifically for the Go server below
12
- client_header_timeout 10m ;
13
10
types_hash_max_size 2048 ;
14
11
include /etc/nginx/mime.types;
15
12
default_type application/octet-stream;
@@ -76,22 +73,6 @@ http {
76
73
proxy_set_header X-Forwarded-Proto $scheme ;
77
74
# Disable checking of the body size
78
75
client_max_body_size 0 ;
79
- # Disable or increase timeout checks. Allow the application to determine the appropriate timeouts
80
- client_body_timeout 0 ;
81
- send_timeout 10m ;
82
- proxy_read_timeout 10m ;
83
- proxy_connect_timeout 10m ;
84
- # TODO(https://github.com/web-platform-tests/wpt.fyi/issues/4231)
85
- # Nginx client keepalive timeout. Due to the use of nicehttp, the Go application's
86
- # idle timeout is not configurable, and it defaults to no timeout as per Go 1.23.
87
- # 10 minutes is a temporary high value until nicehttp can be replaced or configured.
88
- # Consider reducing this timeout to a more reasonable value (e.g., 60s) to prevent
89
- # excessive idle connections.
90
- # IMPORTANT: The NGINX UPSTREAM keepalive timeout (configured in the upstream block)
91
- # MUST be LESS than the Go application's idle timeout to avoid connection errors.
92
- # However, since the Go application effectively has no timeout right now because of nicehttp,
93
- # the upstream timeout must be set to a reasonably high value.
94
- keepalive_timeout 10m ;
95
76
}
96
77
}
97
78
}
0 commit comments