forked from matyhtf/webim
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
29 lines (26 loc) · 747 Bytes
/
config.php
File metadata and controls
29 lines (26 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
$config['server'] = array(
//监听的HOST
'host' => '0.0.0.0',
//监听的端口
'port' => '9503',
//WebSocket的URL地址,供浏览器使用的
'url' => 'ws://im.swoole.com:9503',
//用于Comet跨域,必须设置为html所在的URL
'origin' => 'http://im.swoole.com:8888',
);
$config['swoole'] = array(
'log_file' => __DIR__ . '/log/swoole.log',
'worker_num' => 1,
//不要修改这里
'max_request' => 0,
'task_worker_num' => 1,
//是否要作为守护进程
'daemonize' => 0,
);
$config['webim'] = array(
//聊天记录存储的目录
'data_dir' => __DIR__ . '/data/',
'log_file' => __DIR__ . '/log/webim.log',
);
return $config;