This commit is contained in:
Girish Ramakrishnan
2020-09-02 18:55:21 -07:00
parent e791084793
commit 8b5c7d3d87
2 changed files with 8 additions and 0 deletions

View File

@@ -35,7 +35,14 @@ server {
location / {
# redirect everything to HTTPS
<% if ( endpoint === 'admin' ) { %>
return 301 https://$host$request_uri;
<% } else if ( endpoint === 'app' ) { %>
return 301 https://$host$request_uri;
<% } else if ( endpoint === 'redirect' ) { %>
return 301 https://<%= redirectTo %>$request_uri;
<% } %>
}
}