问题描述
可以在Ember的CLI服务器上启用HTTPS协议吗?我们的企业OAuth系统只能通过HTTPS重定向,所以我没有这个绑定。
请注意,从ember-cli 0.2.6开始,您的应用程序可以通过https提供。您只需要在ssl /文件夹中添加server.key和server.crt文件。添加
{
...,
ssl:true
}
也可以通过命令行参数 ember s --ssl = true
您可以按照以下说明创建自签名证书:
Is it possible to enable HTTPS protocol on Ember's CLI server? Our corporate OAuth system only allows redirects over HTTPS, so I'm in a bit of a bind without this.
Please note that as of ember-cli 0.2.6, Your app can be served over https. You just need to add your server.key and server.crt files in the ssl/ folder.
In your ember-cli file add
{
...,
"ssl": true
}
You can also pass it as a command line argument ember s --ssl=true
You can create self-signed certificates by following these instructions:https://devcenter.heroku.com/articles/ssl-certificate-self
这篇关于Ember CLI服务器通过HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!