From 59cbca708399a6b81cd6c6d9f26fd760cb25f2a6 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 23 Apr 2021 15:54:16 -0400 Subject: [PATCH] update nginx configuration for 1.20.0 --- nginx/nginx.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5e6fe6e2..9124b498 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,3 +1,5 @@ +# nginx 1.20.x + load_module modules/ngx_http_brotli_static_module.so; user nginx; @@ -18,7 +20,6 @@ http { sendfile on; sendfile_max_chunk 512k; tcp_nopush on; - keepalive_requests 1000; keepalive_timeout 65; types_hash_max_size 4096; server_tokens off; @@ -28,14 +29,11 @@ http { client_body_buffer_size 1k; client_header_buffer_size 1k; large_client_header_buffers 4 4k; - http2_max_field_size 4k; - http2_max_header_size 16k; http2_recv_buffer_size 128k; client_body_timeout 30s; client_header_timeout 30s; send_timeout 30s; - http2_recv_timeout 30s; http2_max_concurrent_streams 32; limit_conn_status 429;