From 78c442bdba8f6c9352b8d0d8a8e3b2d655472d06 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Thu, 19 Jun 2025 11:36:09 +0300 Subject: [PATCH] conf: misc defaults --- angie/autoconf/http-buffers.conf | 2 ++ angie/autoconf/http-request-headers-forwarded.conf | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/angie/autoconf/http-buffers.conf b/angie/autoconf/http-buffers.conf index 2f8939d..bf953e5 100644 --- a/angie/autoconf/http-buffers.conf +++ b/angie/autoconf/http-buffers.conf @@ -1,4 +1,6 @@ subrequest_output_buffer_size 16k; client_body_buffer_size 16k; +client_max_body_size 64k; + client_header_buffer_size 4k; large_client_header_buffers 8 16k; diff --git a/angie/autoconf/http-request-headers-forwarded.conf b/angie/autoconf/http-request-headers-forwarded.conf index afb55c6..98a5475 100644 --- a/angie/autoconf/http-request-headers-forwarded.conf +++ b/angie/autoconf/http-request-headers-forwarded.conf @@ -17,8 +17,6 @@ map $remote_addr map $http_forwarded $proxy_add_forwarded { - volatile; - ## if the incoming Forwarded header is syntactically valid, append to it "~^(,[ \\t]*)*([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?(;([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?)*([ \\t]*,([ \\t]*([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?(;([!#$%&'*+.^_`|~0-9A-Za-z-]+=([!#$%&'*+.^_`|~0-9A-Za-z-]+|\"([\\t \\x21\\x23-\\x5B\\x5D-\\x7E\\x80-\\xFF]|\\\\[\\t \\x21-\\x7E\\x80-\\xFF])*\"))?)*)?)*$" "$http_forwarded, $proxy_forwarded_elem";