-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.php
executable file
·67 lines (66 loc) · 1.93 KB
/
dev.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
return [
'SERVER_NAME' => "EasySwoole",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => '0.0.0.0',
'PORT' => 9501,
'SERVER_TYPE' => EASYSWOOLE_WEB_SOCKET_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
'SOCK_TYPE' => SWOOLE_TCP,
'RUN_MODEL' => SWOOLE_PROCESS,
'SETTING' => [
'worker_num' => 8,
'reload_async' => true,
'max_wait_time'=>3
],
'TASK'=>[
'workerNum'=>4,
'maxRunningNum'=>128,
'timeout'=>15
]
],
'TEMP_DIR' => '/tmp/swoole/Fund',
'LOG_DIR' => null,
"crosOptions" => [
//是否开启跨域主持
'enable_cros' => true,
//跨域支持域名,精确匹配
'allow_origin' => [
'*'
],
//客户端提交的请求头中哪些头可以被服务端获取
'allow_headers' => 'Content-Type, Authorization, X-Requested-With, authToken',
//允许被使用的http方法
'allow_methods' => 'GET, POST, OPTIONS',
//允许附带cookie和http认证信息
'allow_credentials' => true,
],
'kugouMobile' => [
'host' => 'http://mobilecdn.kugou.com/',
'timeout' => 120
],
'kugouWeb' => [
'host' => 'http://www.kugou.com/',
'timeout' => 120
],
'mysqli' => [
'host' => '172.17.20.88',
'port' => 3307,
'user' => 'root',
'password' => 'root',
'database' => 'music',
'timeout' => 5,
'charset' => 'utf8mb4',
],
'jwt' => [
'key' => 'example_key',
'expire' => 7200,
],
'redis' => [
'host' => '172.17.20.88',
'port' => 6390,
'auth' => '',
'db' => 0,
'timeout' => 10,
],
'avatar_path' => EASYSWOOLE_ROOT . '/upload/'
];