From 22a64b89657e8f906b66eb04ce5377d511ea2cb9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 18 Nov 2016 11:08:14 +0100 Subject: [PATCH] library/roles/nginx: Permit the customization of the large_client_header_buffers settings. --- nginx/defaults/main.yml | 2 ++ nginx/templates/nginx.conf.j2 | 1 + 2 files changed, 3 insertions(+) diff --git a/nginx/defaults/main.yml b/nginx/defaults/main.yml index b9732cc..ab5514c 100644 --- a/nginx/defaults/main.yml +++ b/nginx/defaults/main.yml @@ -25,6 +25,8 @@ nginx_multi_accept: 'off' nginx_worker_rlimit_nofile: 2048 nginx_server_tokens: 'off' +nginx_large_client_header_buffers: 4 8k + nginx_enable_compression: True nginx_gzip_vary: "on" nginx_gzip_proxied: any diff --git a/nginx/templates/nginx.conf.j2 b/nginx/templates/nginx.conf.j2 index ae69f9b..9dccd9f 100644 --- a/nginx/templates/nginx.conf.j2 +++ b/nginx/templates/nginx.conf.j2 @@ -19,6 +19,7 @@ http { # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; + large_client_header_buffers {{ nginx_large_client_header_buffers }}; ## # Logging Settings ##