mirror of
https://github.com/chengciming/wechatPc.git
synced 2026-10-17 05:07:23 +08:00
36 lines
828 B
PHP
36 lines
828 B
PHP
<?php
|
|
/**
|
|
* 公共配置
|
|
*/
|
|
|
|
return [
|
|
/**
|
|
* 是否开启debug模式
|
|
*/
|
|
'debug' => true,
|
|
/**
|
|
* 服务端websocket配置
|
|
*/
|
|
'listen'=>[
|
|
'ipaddress'=>'0.0.0.0',
|
|
'port'=>8686
|
|
],
|
|
/**
|
|
* 浏览器端websocket配置
|
|
*/
|
|
'web_listen'=>[
|
|
'ipaddress'=>'0.0.0.0',
|
|
'port'=>5678
|
|
],
|
|
/**
|
|
* 基础配置
|
|
*/
|
|
'worker'=>[
|
|
'daemonize' => false, //是否后台运行
|
|
'worker_num' => 4, //工作进程数量
|
|
'name' => 'Wechat', //服务名称
|
|
'log_file' => ROOT_PATH . '/Storage/logs/wechat.log', //日记文件
|
|
'pid_file' => ROOT_PATH . '/Storage/pid/wechat.pid', //服务PID文件
|
|
'stdout_file' => '', //屏幕打印输出到文件,不设置或者为空则打印到频幕
|
|
],
|
|
]; |