Node.js Flatiron HTTPS服务器

有一种使用Flatiron框架使用HTTPS连接的方法吗?

更新: HTTPS服务器示例现在在github上可用。

var flatiron = require('flatiron'), app = flatiron.app; app.use(flatiron.plugins.http, { https: { cert: 'path/to/cert.pem', key: 'path/to/key.pem', ca: 'path/to/ca.pem' } }); app.router.get('/', function () { this.res.writeHead(200, { 'Content-Type': 'text/plain' }); this.res.end('Hello world!\n'); }); app.start(8080); 

引用文档看起来像https可以添加为一个选项应该看起来像这样

 { https: { cert: 'path/to/cert.pem', key: 'path/to/key.pem', ca: 'path/to/ca.pem' } } 

希望这可以帮助