A couple of new tunable timeouts.

This commit is contained in:
Andrea Dell'Amico 2023-08-03 13:11:49 +02:00
parent 442f809f83
commit 3ff421cee3
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,8 @@ nginx_multi_accept: 'off'
nginx_worker_rlimit_nofile: 2048
nginx_server_tokens: 'off'
nginx_keepalive_timeout: 75s
nginx_send_timeout: 60s
nginx_default_max_buffers_size: 16
nginx_client_header_buffer_size: '{{ nginx_default_max_buffers_size }}k'
nginx_client_body_buffer_size: '{{ nginx_default_max_buffers_size }}k'

View File

@ -30,7 +30,8 @@ http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
keepalive_timeout {{ nginx_keepalive_timeout }};
send_timeout {{ nginx_send_timeout }};
types_hash_max_size 2048;
server_tokens {{ nginx_server_tokens }};
# server_names_hash_bucket_size 64;