问题描述
我有一个在heroku上运行瘦服务器的rails应用程序。它目前使用http。我想使用https进行bot开发和生产。我从哪里开始这样做。
I have a rails app running a thin server on heroku. It currently uses http. I would like to use https for bot development and production. Where do I begin to do this.
我看过这个,显示如何使用POW服务器。我不想使用POW服务器,我想使用瘦服务器。
I have looked at this railscast where they show how to use a POW server. I dont want to use a POW server, I want to use a Thin server.
我也看了:但是在这里他们假设你已经打开了ssl。
I also looked here: But here they assume that you have open ssl insatlled.
我还没有找到任何显示如何从头开始在瘦服务器上运行https的地方。
I haven't found any place which shows how to run https on a thin server from scratch.
我想知道是否有人有任何建议。
I was wondering if anyone has any suggestions.
谢谢
推荐答案
试试这个:
$ thin start --ssl
你如果你想要ssl和非ssl端口,将需要一个单独的实例。
You will need a separate instance if you want both ssl and non-ssl ports.
这篇关于在瘦服务器上的rails应用程序中启用https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!