Merge pull request #1244 from aledbf/add-custom-backend-annotation

Add custom default backend annotation
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-08-25 15:15:17 -04:00 committed by GitHub
commit b791460206
10 changed files with 270 additions and 17 deletions

View file

@ -415,7 +415,8 @@ http {
fastcgi_param HTTP_X_Endpoints {{ .DefaultBackendEndpoints }};
fastcgi_pass unix:/var/run/go-fastcgi.sock;
{{ else }}
return 404;
set $proxy_upstream_name "upstream-default-backend";
proxy_pass http://upstream-default-backend;
{{ end }}
}
}