I realized a little later that I could use a before_filter to force the protocol for all requests. I then had to hack that a touch to merge in the params passed in, but think I got it working. I will look at ssl_requirement though since mine feels a touch hacky.
Thanks! -Shane On Sun, Dec 13, 2009 at 9:33 PM, Chris Conley <[email protected]> wrote: > I've used http://github.com/rails/ssl_requirement in the past to do this. > There may be some Rack middleware now that does the same thing. > > On Sun, Dec 13, 2009 at 9:19 PM, Shane <[email protected]> wrote: >> >> I just added the piggyback ssl add-on and was wondering if anyone had >> an idea about how I could prevent my app from being used w/o SSL - ie >> is there some way I could redirect to the SSL version any attempts to >> use the non-ssl version? I know how I would do it with my own admined >> version of Apache, but not sure with Heroku. >> >> Thanks in advance. >> >> -Shane >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Heroku" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/heroku?hl=en. >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
