Merge " Fix issue with milliseconds in logs shiped to elastic."
diff --git a/README.rst b/README.rst
index 630b919..33736b9 100644
--- a/README.rst
+++ b/README.rst
@@ -491,6 +491,25 @@
name: gitlab.domain.com
port: 80
+If we need to read large client request headers, we need to add new
+parameter `large_client_header_buffers` with buffers number and size:
+.. code-block:: yaml
+ nginx:
+ server:
+ enabled: true
+ bind:
+ address: '0.0.0.0'
+ ports:
+ - 80
+ site:
+ gitlab_proxy:
+ enabled: true
+ type: nginx_proxy
+ large_client_header_buffers: '4 8k'
+ host:
+ name: gitlab.domain.com
+ port: 80
+
Let's Encrypt:
.. code-block:: yaml
diff --git a/nginx/files/proxy.conf b/nginx/files/proxy.conf
index 12fd60c..8d57fd8 100644
--- a/nginx/files/proxy.conf
+++ b/nginx/files/proxy.conf
@@ -26,6 +26,9 @@
{# If location is not defined in model, use proxy definition by default #}
{%- do location.update({'/': site.proxy}) %}
{%- endif %}
+ {%- if site.get('large_client_header_buffers') %}
+ large_client_header_buffers {{ site.large_client_header_buffers }};
+ {%- endif %}
{%- if site.get('limit', {}).get('enabled', False) %}
limit_req_status {{ site.limit.get('status_code', '429') }};
limit_conn_status {{ site.limit.get('status_code', '429') }};