From 34b015b86e403d95e8e915235c6beb1de1e06525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sun, 31 Jan 2021 16:02:24 +0100 Subject: [PATCH] Fix nginx not configuring on some domains This fixes the following error: ``` nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32 ``` It occurs while reloading nginx after updating the certificates if your domain name is strange enough I suppose. This causes nginx to be stuck in "snikket is starting up" mode, because it cannot reload its config. When restarting the container, it would probably crash completely. See-Also: https://stackoverflow.com/a/13906493/1248008 --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5bfe428..4c43ccd 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -21,7 +21,7 @@ http { types_hash_max_size 2048; # server_tokens off; - # server_names_hash_bucket_size 64; + server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types;