change redirections to 301

This commit is contained in:
Girish Ramakrishnan
2023-07-31 06:02:43 +05:30
parent 72ccac2753
commit 740e69c8dd
2 changed files with 3 additions and 4 deletions

View File

@@ -357,9 +357,8 @@ server {
<% } else if ( endpoint === 'redirect' ) { %>
location / {
# redirect everything to the app. this is temporary because there is no way
# to clear a permanent redirect on the browser
return 302 https://<%= redirectTo %>$request_uri;
# redirect everything to the app
return 301 https://<%= redirectTo %>$request_uri;
}
<% } else if ( endpoint === 'external' ) { %>
<% if (proxyAuth.enabled) { %>