disable proxy buffering and add larger header buffer

This commit is contained in:
nd 2021-10-07 23:52:59 +02:00
parent 1b81731a4b
commit f5b437785d
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@ http {
types_hash_max_size 2048; types_hash_max_size 2048;
server_tokens off; server_tokens off;
reset_timedout_connection on; reset_timedout_connection on;
large_client_header_buffers 4 32k;
server_names_hash_bucket_size 64; server_names_hash_bucket_size 64;
map_hash_bucket_size 64; map_hash_bucket_size 64;

View file

@ -47,6 +47,8 @@ server {
{% if location.backend|d(False) %} {% if location.backend|d(False) %}
proxy_pass {{ location.backend }}; proxy_pass {{ location.backend }};
proxy_buffering off;
# add proxy headers # add proxy headers
proxy_set_header Host {{ vhost.host }}; proxy_set_header Host {{ vhost.host }};
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;