From 2c6334b982d5963e05151f9a30eb87ec6df60f8b Mon Sep 17 00:00:00 2001 From: teutat3s Date: Fri, 3 Nov 2023 13:48:55 +0100 Subject: [PATCH] fix: nginx [warn] could not build optimal proxy_headers_hash you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size See: https://nginx.org/en/docs/hash.html https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_headers_hash_max_size --- hosts/nachtigall/apps/nginx.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nachtigall/apps/nginx.nix b/hosts/nachtigall/apps/nginx.nix index 65ad988..9b6b88e 100644 --- a/hosts/nachtigall/apps/nginx.nix +++ b/hosts/nachtigall/apps/nginx.nix @@ -19,6 +19,11 @@ in { recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + appendHttpConfig = '' + # https://nginx.org/en/docs/hash.html + proxy_headers_hash_max_size 1024; + proxy_headers_hash_bucket_size = 64; + ''; }; security.acme = {