How to make Sinatra work over HTTPS/SSL?

后端 未结 5 1626
闹比i
闹比i 2020-11-30 21:40

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

5条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 21:54

    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.

提交回复
热议问题