-
Notifications
You must be signed in to change notification settings - Fork 5
/
conf.example.yml
57 lines (50 loc) · 1.44 KB
/
conf.example.yml
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
## conf
automaticExecution2: false #when the first stage of execution ends, it will commit automatically or rollback if it is true
timeout: 7 #unit of second
server:
grpc:
listenOn: 8088
keyFile: #server key
certFile: #server cert
gateway:
isOpen: true
certFile: #client cert
serverName: #server name
http:
listenOn: 8087
db: #easycar server db
driver: mysql
mysql:
dbURL: easycar:easycar@tcp(mysql:3306)/easycar?charset=utf8&parseTime=True&loc=Local
maxLifetime: 7200
maxIdleConns: 10
maxOpenConns: 20
mongodb:
url: mongodb://127.0.0.1:27017/easycar
minPool: 10
maxPool: 20
registry: #If the registry is configured,we need to register the service to the registry center when the server start
etcd:
user: ""
pass: ""
hosts:
consul:
default: false
## add more
tracing:
jaegerUrl: http://localhost:14268/api/traces
#
cron:
## max retry times when rm is not available
maxTimes: 3
timeInterval: 5 #unit is minute. it means that the next retry is 5m later, not in strict mode
# --------------------- Notification Configuration ---------------------
#notify:
# telegram:
# token: xxxxxxx # Bot Token
# chat_id: -123456789 # Channel / Group ID
# dingtalk:
# webhook: "https://oapi.dingtalk.com/robot/send?access_token=xxxx"
# secret: "" # sign secret if set
# lark:
# webhook: "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxx"