diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-28 15:25:19 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-28 15:25:19 +0000 |
commit | 4de52db6f90ade9142c2f12988bba0b529137f95 (patch) | |
tree | b4b4b41349431329de42806e95949012f9afd8d3 /roles/nginx/files/nginx.conf | |
parent | 710474f5c13fed5943b4c9680e7b59445ec1e5f6 (diff) | |
download | infra-4de52db6f90ade9142c2f12988bba0b529137f95.tar.gz infra-4de52db6f90ade9142c2f12988bba0b529137f95.tar.bz2 infra-4de52db6f90ade9142c2f12988bba0b529137f95.zip |
Enable tcp_nopush and tcp_nodelay for nginx
For compatibility with CentOS 7 nginx config.
Diffstat (limited to 'roles/nginx/files/nginx.conf')
-rw-r--r-- | roles/nginx/files/nginx.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf index ce8302d..66d609a 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -38,6 +38,12 @@ http { # Set types_hash_max_size to 2048 to avoid warning in logs. types_hash_max_size 4096; + # Enable TCP_CORK option to send files in full packets. + tcp_nopush on; + + # Enable TCP_NODELAY option. + tcp_nodelay on; + # Load configs for all enabled sites. include /etc/nginx/sites-enabled/*; |