Add httpPaths support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user