1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-09-20 02:43:10 +02:00

Merge pull request #926 from Paike/patch-1

Fallback if container has no IP
This commit is contained in:
Jason Wilder 2018-01-20 23:04:40 -07:00 committed by GitHub
commit 226bfe158f
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,13 @@
{{ end }}
{{ else if .Network }}
# {{ .Container.Name }}
server {{ .Network.IP }} down;
{{ if .Network.IP }}
server {{ .Network.IP }} down;
{{ else }}
server 127.0.0.1 down;
{{ end }}
{{ end }}
{{ end }}
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the