-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconfig.yaml.test
More file actions
63 lines (63 loc) · 1.6 KB
/
config.yaml.test
File metadata and controls
63 lines (63 loc) · 1.6 KB
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
server:
name: 'Im-Services'
listen: ':8000'
mode: 'debug' # gin的运行模式 debug, release, test
env: 'local' #local production testing
lang: 'zh'
coroutinePoll: 100000 # 启动的协程池数量
node: '127.0.0.1:9505' #当前服务集群节点
serviceOpen: false # 开启集群服务
grpcListen: ':8002' # grpc端口
mysql:
host: '127.0.0.1'
port: 3306
database: 'im'
username: 'root'
password: 'root'
charset: 'utf8mb4'
log:
level: 'debug' # 开发时推荐使用 "debug" 或者 "info" ,生产环境下使用 "error"
type: 'daily' #"single" 独立的文件 "daily" 按照日期每日一个
filename: 'storage/logs/logs.log'
maxSize: 64 # 保存最大单位 M
maxBackup: 30 #最多保存日志文件数,0 为不限,MaxAge 到了还是会删
maxAge: 7 #最多保存多少天
compress: false #是否压缩
jwt:
secret: 'acb2ca5bc8d7fb2ef8f890f1be15d964' #密钥
ttl: 640000 #
redis:
host: '127.0.0.1'
port: 6379
password:
db: 1
poll: 15 #连接池 默认为4倍cpu数
conn: 10 #最小空闲连接数
mail:
driver: 'smtp'
host: 'smtp.qq.com'
name: '@qq.com'
password: ''
port: 465
encryption: 'ssl'
fromName: 'Im-Services'
kafka:
host: '127.0.0.1'
port: 9506
nsq:
lookupHost: '127.0.0.1:4161'
nsqHost: '127.0.0.1:4150'
qiniu:
accessKey: '-'
secretKey: '-Itv6IKFu'
bucket: 'im'
domain: 'https://.top'
github:
appId: '',
appKey: ''
redirectUrl: ''
gobot:
email: 'intelligence@chat.com'
password: 'intelligence@30434---343'
name: '机器人'
avatar: 'https://img-blog.csdnimg.cn/b58167dd92d2467f8404b044e909d26c.png#pic_center'