From cd93b73886c56b167536950cf7993e2418ca3bf3 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 3 Sep 2022 17:53:54 -0500 Subject: [PATCH] Increase capacity of proxy buffers in nginx config --- roles/ingress/templates/vhosts.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/ingress/templates/vhosts.conf.j2 b/roles/ingress/templates/vhosts.conf.j2 index 373ce12..9160a58 100644 --- a/roles/ingress/templates/vhosts.conf.j2 +++ b/roles/ingress/templates/vhosts.conf.j2 @@ -45,6 +45,9 @@ server { {% if server.proxy_pass is defined %} # Singular proxy_pass location / { + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; @@ -54,6 +57,9 @@ server { # Proxy locations {% for proxy in server.proxies %} location {{ proxy.location }} { + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme;