Create nginx configs for app redirects

This commit is contained in:
Johannes Zellner
2018-06-29 16:14:13 +02:00
parent a6e53e3617
commit 3d0da34960
2 changed files with 35 additions and 1 deletions

View File

@@ -171,6 +171,9 @@ server {
}
<% } else if ( endpoint === 'app' ) { %>
proxy_pass http://127.0.0.1:<%= port %>;
<% } else if ( endpoint === 'redirect' ) { %>
# redirect everything to the app
return 301 https://<%= redirectTo %>$request_uri;
<% } %>
}
}