【发布时间】:2017-02-16 21:29:04
【问题描述】:
http://sambaza.herokuapp.com/: 我的应用程序本应受 Heroku 子域 SSL 保护,但不安全且缺少 SSL 证书,这是为什么呢?
【问题讨论】:
标签: ruby-on-rails ssl heroku
http://sambaza.herokuapp.com/: 我的应用程序本应受 Heroku 子域 SSL 保护,但不安全且缺少 SSL 证书,这是为什么呢?
【问题讨论】:
标签: ruby-on-rails ssl heroku
对于您使用的任何环境,您可能需要在您的production.rb 或staging.rb 中设置config.force_ssl = true。您会注意到https://sambaza.herokuapp.com/ 确实使用默认证书呈现您的页面,它只是没有强制在您的设置中使用。
查看heroku页面了解更多信息:https://devcenter.heroku.com/articles/ssl-endpoint
【讨论】:
我必须启用它
config.force_ssl = true 在配置 production.rb 文件中
【讨论】: