我有专用的服务器:
CentOs7,cpanel,WHM,apache 2.2,php7.1,laravel 5.6,https,redis
我正在尝试安装laravel echo,vue和socket.io。
如何针对SSL执行此操作?显示以下错误:
app.js?id=e6c92fbc37129623c0c4:10566 GET https://alphi.com.br:6001/socket.io/?EIO=3&transport=polling&t=MghmbsJ net::ERR_CONNECTION_TIMED_OUT
将其研究到我检查的与SSL有关的全部时间。但我不知道该怎么做,有人可以帮助我吗?谢谢
bootstrap.js
import Echo from "laravel-echo"
window.io = require('socket.io-client');
// Have this in case you stop running your laravel echo server
if (typeof io !== 'undefined') {
window.Echo = new Echo({
broadcaster: 'socket.io',
host: 'https://alphi.com.br:6001',
});
}
app.js
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('topo', require('./components/Topo.vue'));
const app = new Vue({
el: '#app'
});
laravel-echo-server.json:
{
"authHost": "https://alphi.com.br",
"authEndpoint": "/broadcasting/auth",
"clients": [
{
"appId": "50695e051b9871b22",
"key": "c3b2e38a3573d048c90e0bce0e57w989a"
}
],
"database": "redis",
"databaseConfig": {
"redis": {},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": true,
"host": null,
"port": "6001",
"protocol": "https",
"socketio": {},
"sslCertPath": "/etc/ssl/certs/server0c1.alphi.com.br.crt",
"sslKeyPath": "/etc/ssl/private/server0c1.alphi.com.br.key",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
"redis": true
},
"apiOriginAllow": {
"allowCors": true,
"allowOrigin": "https://alphi.com.br:80",
"allowMethods": "GET, POST",
"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
}
}