Add httpPaths support

This commit is contained in:
Girish Ramakrishnan
2020-11-18 23:25:27 -08:00
parent cde42e5f92
commit 0a3aad0205
5 changed files with 16 additions and 7 deletions

View File

@@ -245,6 +245,12 @@ server {
error_page 401 = @proxy-auth-login;
<% } %>
<% Object.keys(httpPaths).forEach(function (path) { -%>
location "<%= path %>" {
proxy_pass http://<%= ip %>:<%= httpPaths[path] %>;
}
<% }); %>
proxy_pass http://<%= ip %>:<%= port %>;
<% } else if ( endpoint === 'redirect' ) { %>
# redirect everything to the app. this is temporary because there is no way