Patched template file to work with api-gateway

This commit is contained in:
Vladimir Garvardt 2017-02-20 15:30:35 +01:00
parent 68816390ee
commit a3e285d7a8

View file

@ -240,7 +240,13 @@ server {
include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $upstream_name }};
{{ else }}
{{ if eq $upstream_name "reverse_proxy" }}
proxy_pass {{ trim $proto }}://api-gateway:8080;
{{ else }}
proxy_pass {{ trim $proto }}://{{ trim $upstream_name }};
{{ end }}
{{ end }}
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
auth_basic "Restricted {{ $host }}";