Increase capacity of proxy buffers in nginx config

This commit is contained in:
Salt 2022-09-03 17:53:54 -05:00
parent fe5f006451
commit cd93b73886

View File

@ -45,6 +45,9 @@ server {
{% if server.proxy_pass is defined %} {% if server.proxy_pass is defined %}
# Singular proxy_pass # Singular proxy_pass
location / { location / {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
@ -54,6 +57,9 @@ server {
# Proxy locations # Proxy locations
{% for proxy in server.proxies %} {% for proxy in server.proxies %}
location {{ proxy.location }} { location {{ proxy.location }} {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;