【node.js – 如何使用https在生产服务器上使用Laravel Echo】教程文章相关的互联网学习教程文章

node.js – 如何使用https在生产服务器上使用Laravel Echo【代码】

我想知道在https生产服务器上设置Laravel Echo的正确(或任何相关的)方式是什么.我已经让它在我的本地流浪者上工作了一段时间,现在我已经将更改推送到生产中,我无法让脚本连接到节点服务器.这是我现在拥有的.var echo = require('laravel-echo-server');var options = {host: 'https://localhost',port: '6001',sslCertPath: '/etc/nginx/ssl/nginx.crt',sslKeyPath: '/etc/nginx/ssl/nginx.key' };echo.run(options);然后在javascr...