From 34a8faa7a48944a644dc9f92d992439c711310a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vebj=C3=B8rn=20Nordby?= Date: Tue, 7 Jan 2025 19:46:09 +0100 Subject: [PATCH] =?UTF-8?q?Default=20for=20large=5Fclient=5Fheader=5Fbuffe?= =?UTF-8?q?rs=20er=204=208k;=20=C3=98ker=20denne=20for=20=C3=A5=20bli?= =?UTF-8?q?=E2=80=A6=20(#6964)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Default for large_client_header_buffers er 4 8k; Øker denne for å bli kvitt 431 Request Header Fields Too Large som dukker opp iblant * fjerner client_max_body_size * templating fix --- deploy/prod-fss-k9saksbehandling.yml | 2 +- proxy.nginx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/prod-fss-k9saksbehandling.yml b/deploy/prod-fss-k9saksbehandling.yml index ee2f03353e..33980a91c8 100644 --- a/deploy/prod-fss-k9saksbehandling.yml +++ b/deploy/prod-fss-k9saksbehandling.yml @@ -12,7 +12,7 @@ metadata: nginx.ingress.kubernetes.io/proxy-read-timeout: '600' nginx.ingress.kubernetes.io/proxy-send-timeout: '600' spec: - image: { { image } } + image: {{ image }} port: 9000 liveness: path: /isAlive diff --git a/proxy.nginx b/proxy.nginx index 39a69ad55c..cee2a6b6d4 100644 --- a/proxy.nginx +++ b/proxy.nginx @@ -26,6 +26,8 @@ server { # Proxy headers. Will be overwritten if you set them in blocks. proxy_buffers 16 32k; proxy_buffer_size 32k; + large_client_header_buffers 8 16k; + proxy_pass_header Nav-Callid; proxy_set_header Referer $http_referer; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;