Commit f2f67a2d authored by Administrator's avatar Administrator

更新wss

parent a05ea255
Pipeline #171 failed with stages
......@@ -65,10 +65,7 @@ class alarm extends Command
'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_public.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_chain.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
));
$this->ws->on('open', function ($ws, $request) {
// //链接成功
......
......@@ -66,9 +66,6 @@ class chemicalswb extends Command
'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_public.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_chain.crt',
));
$this->ws->on('open', function ($ws, $request) {
// //链接成功
......
......@@ -66,9 +66,6 @@ class firewb extends Command
'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_public.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_chain.crt',
));
$this->ws->on('open', function ($ws, $request) {
// //链接成功
......
......@@ -66,9 +66,6 @@ class swoole extends Command
'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_public.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_chain.crt',
));
$this->ws->on('open', function ($ws, $request) {
// //链接成功
......
......@@ -68,10 +68,7 @@ class swooleMeTcp extends Command
'heartbeat_check_interval' => 30,
'heartbeat_idle_time' => 65,
'ssl_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_public.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/cert/apache/iot.zhkjgf.com_chain.crt',
'ssl_key_file' => base_path() . '/cert/apache/iot.zhkjgf.com.key',
]);
//监听连接进入事件
$this->tcp->on('Connect', function ($serv, $fd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment