Browse Source

make sure nginx does not crash with long domain name

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
70bf739046
  1. 3
      Production/nginx.tmpl

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

Loading…
Cancel
Save