Closed holaymolay closed 7 years ago
ssl works but not all versions of the domain (e.g. www.codeclub.social) forward to https
Here's a fantastic solution: https://stackoverflow.com/a/23977269/3170942
Notes on HTTPS redirection:
process.env.PORT
)is still open for development. It is HTTP.
This gets turned off in production.Closing this issue.
I should also mention that the site certs key.pem
and cert.pem
are bogus since they haven't been signed by a CSA, so you will get "Not secure" warnings when you HTTPS to the site.
maybe I don't sufficiently understand SSL, but we are piggybacking on heroku's ssl Certificate. Also, I've not gotten the error you're talking about, that is unless the recent changes have changed that
That sounds right. Probably cert.pem
and key.pem
are not even used on the Heroku side. I need them when I run locally.
just in case: https://jaketrent.com/post/https-redirect-node-heroku/
ssl is working: https://www.codeclub.social/
The only problem is if someone goes to www.codeclub.social it resolves as non-https...