diff --git a/docs/configuration/nginx.md b/docs/configuration/nginx.md index b743a1638..fd7bf6db4 100644 --- a/docs/configuration/nginx.md +++ b/docs/configuration/nginx.md @@ -178,7 +178,7 @@ upstream {{ $.APP }}-{{ $upstream_port }} { {{ $listener_list := $listeners | split ":" }} {{ $listener_ip := index $listener_list 0 }} {{ $listener_port := index $listener_list 1 }} - server {{ $listener_ip }}:{{ $upstream_port }};{{ end }} + server {{ $listener_ip }}:{{ $listener_port }};{{ end }} } {{ end }} ``` diff --git a/plugins/nginx-vhosts/templates/nginx.conf.sigil b/plugins/nginx-vhosts/templates/nginx.conf.sigil index 181f8d8c0..50df0aae6 100644 --- a/plugins/nginx-vhosts/templates/nginx.conf.sigil +++ b/plugins/nginx-vhosts/templates/nginx.conf.sigil @@ -119,6 +119,6 @@ upstream {{ $.APP }}-{{ $upstream_port }} { {{ $listener_list := $listeners | split ":" }} {{ $listener_ip := index $listener_list 0 }} {{ $listener_port := index $listener_list 1 }} - server {{ $listener_ip }}:{{ $upstream_port }};{{ end }} + server {{ $listener_ip }}:{{ $listener_port }};{{ end }} } {{ end }}{{ end }}