mirror of
https://github.com/thib8956/nginx-proxy
synced 2026-12-03 19:50:14 +00:00
1 parent
0bab8934c3
commit
f36ca3d7a3
2 files changed
+7
-5
No files matched your search
+6
-4
@@ -58,11 +58,13 @@ upstream {{ $host }} {
|
||||
{{ end }}
|
||||
{{/* Else default to standard web port 80 */}}
|
||||
{{ else }}
|
||||
{{ range $address := $container.Addresses }}
|
||||
{{ if eq $address.Port "80" }}
|
||||
{{ $address := where $container.Addresses "Port" "80" | first }}
|
||||
{{ if $address }}
|
||||
# {{$container.Name}}
|
||||
server {{ $address.IP }}:{{ $address.Port }};
|
||||
{{ end }}
|
||||
server {{ $address.IP }}:80;
|
||||
{{ else }}
|
||||
# {{$container.Name}}
|
||||
server {{ $container.IP }} down;
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user