mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 11:56:31 +00:00
Merge pull request #926 from Paike/patch-1
Fallback if container has no IP
This commit is contained in:
commit
226bfe158f
@ -13,10 +13,15 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if .Network }}
|
{{ else if .Network }}
|
||||||
# {{ .Container.Name }}
|
# {{ .Container.Name }}
|
||||||
|
{{ if .Network.IP }}
|
||||||
server {{ .Network.IP }} down;
|
server {{ .Network.IP }} down;
|
||||||
|
{{ else }}
|
||||||
|
server 127.0.0.1 down;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
|
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
|
||||||
# scheme used to connect to this server
|
# scheme used to connect to this server
|
||||||
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
|
map $http_x_forwarded_proto $proxy_x_forwarded_proto {
|
||||||
|
Loading…
Reference in New Issue
Block a user