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 do I create a HTTPS ro
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.
request.secure?
SSL + Nginx: the first article, the second one.