Initialize proxy_upstream_name variable

This commit is contained in:
Manuel de Brito Fontes 2016-09-29 12:02:45 -03:00
parent e74b8039a5
commit 75dd1d3c6a

View file

@ -314,6 +314,7 @@ http {
} }
location / { location / {
set $proxy_upstream_name "upstream-default-backend";
proxy_pass http://upstream-default-backend; proxy_pass http://upstream-default-backend;
} }
{{- template "CUSTOM_ERRORS" $cfg }} {{- template "CUSTOM_ERRORS" $cfg }}
@ -322,6 +323,7 @@ http {
# default server for services without endpoints # default server for services without endpoints
server { server {
listen 8181; listen 8181;
set $proxy_upstream_name "-";
location / { location / {
{{ if .customErrors }} {{ if .customErrors }}