From 70bf7390466a9843d82fd9b7c49975e062a92de3 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 13 Jan 2018 14:20:03 +0900 Subject: [PATCH] make sure nginx does not crash with long domain name --- Production/nginx.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Production/nginx.tmpl b/Production/nginx.tmpl index 9eb9520..9508ca5 100644 --- a/Production/nginx.tmpl +++ b/Production/nginx.tmpl @@ -1,5 +1,8 @@ {{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }} +# So nginx does not crash with long domain name +server_names_hash_bucket_size 128; + {{ define "upstream" }} {{ if .Address }} {{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}}