views:

124

answers:

1

As the title says... Google doesn't give anything useful concerning this.

How do I set up and configure https/ssl for Sinatra apps?

How to create a https route? etc.

I have never used https for my apps before and have no experience tweaking Rack/whatever, so I appreciate detailed answers...

+1  A: 

I guess you need to setup your Web-server, not Sinatra, to work with SSL. In Sinatra you can use the request.secure? method to check for the SSL usage.

SSL + Nginx: the first article, the second one.

floatless