From 91152a75ba62976e93288d1825bf1a9e9c899ea8 Mon Sep 17 00:00:00 2001 From: nfebe Date: Tue, 3 Feb 2026 22:17:53 +0100 Subject: [PATCH] fix(nginx): Increase server_names_hash_bucket_size to 128 Long domain names (e.g., auto-generated subdomains) can exceed the default bucket size of 64, causing nginx config test to fail with: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64 Increasing to 128 accommodates longer domain names. Signed-off-by: nfebe --- templates/infra/nginx/nginx.conf | 1 + test/e2e/nginx/lua/nginx.conf | 1 + test/e2e/nginx/nginx.conf | 1 + test/e2e/nginx/security/nginx.conf | 1 + 4 files changed, 4 insertions(+) diff --git a/templates/infra/nginx/nginx.conf b/templates/infra/nginx/nginx.conf index 51b3a9a..5d35c79 100644 --- a/templates/infra/nginx/nginx.conf +++ b/templates/infra/nginx/nginx.conf @@ -21,6 +21,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; + server_names_hash_bucket_size 128; # Gzip compression gzip on; diff --git a/test/e2e/nginx/lua/nginx.conf b/test/e2e/nginx/lua/nginx.conf index 82aaf67..e194bf3 100644 --- a/test/e2e/nginx/lua/nginx.conf +++ b/test/e2e/nginx/lua/nginx.conf @@ -18,6 +18,7 @@ http { sendfile on; keepalive_timeout 65; + server_names_hash_bucket_size 128; # Lua package path lua_package_path "/etc/nginx/lua/?.lua;;"; diff --git a/test/e2e/nginx/nginx.conf b/test/e2e/nginx/nginx.conf index a273568..56ec416 100644 --- a/test/e2e/nginx/nginx.conf +++ b/test/e2e/nginx/nginx.conf @@ -19,6 +19,7 @@ http { sendfile on; keepalive_timeout 65; + server_names_hash_bucket_size 128; # Docker DNS resolver resolver 127.0.0.11 valid=10s ipv6=off; diff --git a/test/e2e/nginx/security/nginx.conf b/test/e2e/nginx/security/nginx.conf index 7afd8d6..75030f0 100644 --- a/test/e2e/nginx/security/nginx.conf +++ b/test/e2e/nginx/security/nginx.conf @@ -19,6 +19,7 @@ http { sendfile on; keepalive_timeout 65; + server_names_hash_bucket_size 128; # Docker DNS resolver resolver 127.0.0.11 valid=10s ipv6=off;