Fix proxyAuth nginx config

This commit is contained in:
Girish Ramakrishnan
2021-01-11 21:52:41 -08:00
parent 7f324793b5
commit 1a5fc894d6

View File

@@ -268,6 +268,17 @@ server {
proxy_pass http://<%= ip %>:<%= port %>;
}
<% if (proxyAuth.location !== '/') { %>
location / {
proxy_pass http://<%= ip %>:<%= port %>;
}
<% } %>
<% } else { %>
location / {
proxy_pass http://<%= ip %>:<%= port %>;
}
<% } %>
<% Object.keys(httpPaths).forEach(function (path) { -%>
@@ -277,9 +288,6 @@ server {
}
<% }); %>
location / {
proxy_pass http://<%= ip %>:<%= port %>;
}
<% } else if ( endpoint === 'redirect' ) { %>
# redirect everything to the app. this is temporary because there is no way
# to clear a permanent redirect on the browser