luminus-framework / luminus

documentation site for Luminus framework
http://www.luminusweb.net/
629 stars 121 forks source link

How to force SSL on Heroku #282

Open paulspencerwilliams opened 3 years ago

paulspencerwilliams commented 3 years ago

I've pushed a Luminus playground app to Heroku and have enabled SSL using

heroku ps:type hobby

I'd now like to force SSL which needs to be done at the application level. How can this be done in Luminus?

yogthos commented 3 years ago

Yeah, you could add a piece of middleware that redirects to SSL. This middleware should do the trick.