Add custom backend annotation

This commit is contained in:
Manuel de Brito Fontes 2017-08-25 12:50:08 -03:00
parent 3499524282
commit bf12e793f6
10 changed files with 270 additions and 17 deletions

View file

@ -405,7 +405,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 }}
}
}