SSL workaround on Heroku

An application has appeared that works perfectly on Heroku, but the problem is that their SSL solution for their own domain is expensive ( http://docs.heroku.com/ssl ), leaving * .heroku.com as their only viable option . It’s good that my application requires only SSL for several pages (for ordering). Right now, I am using "ssl_required" in my controller for these pair actions. Any idea on how to create a before_filter file that would push the user to https://myapp.heroku.com for just these two actions and redirect to http://www.myapp.com for something else? Ugly ugliness, but seems like the best way to go now.

+6
ruby-on-rails heroku
source share
1 answer

You can hack / decapitate: SSL Requirement (github.com/rails/ssl_requirement) so that it redirects to different hosts.

By the way, if you plan to host multiple applications, they can share one multi-domain certificate (and one expensive SSL addon). Here's a more detailed description: http://wojciech.oxos.pl/post/277669886/save-on-herokus-custom-ssl-addons

+6
source share

All Articles