forked from TencentBlueKing/bk-iam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.tpl
88 lines (80 loc) · 1.74 KB
/
config.yaml.tpl
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
debug: true
server:
host: 127.0.0.1
port: 9000
readTimeout: 60
writeTimeout: 60
idleTimeout: 180
sentry:
enable: false
dsn: ""
# use comma ”,“ separated when multiple app_code
superAppCode: "bk_iam,bk_iam_app"
databases:
- id: "iam"
host: "127.0.0.1"
port: 3306
user: "root"
password: "123456"
name: "bkiam"
maxOpenConns: 200
maxIdleConns: 50
connMaxLifetimeSecond: 600
- id: "open_paas"
host: "127.0.0.1"
port: 3306
user: "root"
password: "123456"
name: "open_paas"
redis:
- id: "cache"
type: "standalone"
addr: "localhost:6379"
password: ""
db: 0
# poolSize: 400
# minIdleConns: 200
dialTimeout: 5
readTimeout: 5
writeTimeout: 5
masterName: ""
- id: "mq"
type: "standalone"
addr: "localhost:6379"
password: ""
db: 0
# poolSize: 400
# minIdleConns: 200
dialTimeout: 5
readTimeout: 5
writeTimeout: 5
masterName: ""
logger:
system:
level: debug
writer: os
settings: {name: stdout}
api:
level: info
writer: file
settings: {name: iam_api.log, size: 100, backups: 10, age: 7, path: ./}
sql:
level: debug
writer: file
settings: {name: iam_sql.log, size: 100, backups: 10, age: 7, path: ./}
audit:
level: info
writer: file
settings: {name: iam_audit.log, size: 500, backups: 20, age: 365, path: ./}
web:
level: info
writer: file
settings: {name: iam_web.log, size: 100, backups: 10, age: 7, path: ./}
worker:
level: info
writer: file
settings: {name: iam_worker.log, size: 100, backups: 10, age: 7, path: ./}
component:
level: info
writer: file
settings: {name: iam_component.log, size: 100, backups: 10, age: 7, path: ./}