make sure nginx does not crash with long domain name

This commit is contained in:
nicolas.dorier
2018-01-13 14:20:03 +09:00
parent c48620b3f7
commit 70bf739046

View File

@@ -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 */}}