-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathproduce.php
executable file
·64 lines (63 loc) · 2.27 KB
/
produce.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
<?php
/**
* Created by PhpStorm.
* User: yf
* Date: 2019-01-01
* Time: 20:06
*/
return [
'SERVER_NAME' => "easySiam",
'MAIN_SERVER' => [
'LISTEN_ADDRESS' => '0.0.0.0',
'PORT' => 9501,
'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_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
]
],
"LOG" => [
'dir' => null,
'level' => LoggerInterface::LOG_LEVEL_DEBUG,
'handler' => null,
'logConsole' => true,
'displayConsole'=>true,
'ignoreCategory' => []
],
'TEMP_DIR' => null,
'PHAR' => [
'EXCLUDE' => ['.idea', 'Log', 'Temp', 'easyswoole', 'easyswoole.install']
],
'MYSQL' => [
//数据库配置
'host' => '127.0.0.1',//数据库连接ip
'user' => 'easyswoole_admin',//数据库用户名
'password' => 'CnDeJxTYBh8pje4w',//数据库密码
'database' => 'easyswoole_admin',//数据库
'port' => '3306',//端口
'timeout' => '30',//超时时间
'connect_timeout' => '5',//连接超时时间
'charset' => 'utf8',//字符编码
'strict_type' => false, //开启严格模式,返回的字段将自动转为数字类型
'fetch_mode' => false,//开启fetch模式, 可与pdo一样使用fetch/fetchAll逐行或获取全部结果集(4.0版本以上)
'alias' => '',//子查询别名
'isSubQuery' => false,//是否为子查询
'max_reconnect_times ' => '3',//最大重连次数
],
/**################## JWT #############*/
'JWT' => [
'iss' => 'siam', // 发行人
'exp' => 7200, // 过期时间 默认2小时 2*60*60=7200
'sub' => 'easySiam', // 主题
'nbf' => NULL, // 在此之前不可用
'key' => 'www.siammmm.cn', // 签名用的key
],
];