Ember CLI服务器通过HTTPS [英] Ember CLI Server Over HTTPS

查看:108
本文介绍了Ember CLI服务器通过HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在Ember的CLI服务器上启用HTTPS协议吗?我们的企业OAuth系统只能通过HTTPS重定向,所以我没有这个绑定。

解决方案

请注意,从ember-cli 0.2.6开始,您的应用程序可以通过https提供。您只需要在ssl /文件夹中添加server.key和server.crt文件。添加

  {
...,
ssl:true
}

也可以通过命令行参数 ember s --ssl = true
您可以按照以下说明创建自签名证书:
https://devcenter.heroku.com/articles/ssl-certificate-self


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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆