-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https-redirect-nodejs.config not working on new platform #132
Comments
Could you send me that file? @tamslinn I am struggling to get this to work. |
Apologies I missed your comment. This is what I put in Note I had to make sure the node app I was deploying was listening on 8081
|
Anyone else having this issue? The post above is invalid, I tried correcting the obvious flaws, but couldn't get it to work either. |
I put the file https-redirect-nodejs.config into .ebextensions and confirmed this was part of the deployment archive, but it had no effect - http was not redirected to https.
I think the file is executed and creates a file in
/etc/nginx/conf.d
as required but then later in the deployment the directory is overwritten.I got it to work by placing the contents of the file which would have been written by https-redirect-nodejs.config into
.platform/nginx/conf.d/https-redirect-nodejs.conf
I wonder if the instructions need updating for new platform versions?
The text was updated successfully, but these errors were encountered: