Fix proxyAuth nginx config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user