-
Notifications
You must be signed in to change notification settings - Fork 0
/
sc-go.yaml
120 lines (110 loc) · 2.57 KB
/
sc-go.yaml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
sc:
##########gin配置项##########
gin:
scan:
pkg: controller
filter: "@Router"
port: 8080
#########JWT配置项###########
jwt:
tokenName: "Authentication"
storeType: 1 ## 1:Header ,2:cookie, 3: url
secretKey: 1qaz2wsx53647593626637
expire: 20
whiteList:
- /login
##########sqlx配置项##########
sqlx:
driver: mysql
url: root:wisesoft@tcp(172.16.9.19:3306)/codemg?charset=utf8
maxIdle: 5
maxOpen: 3
##########gorm配置项##########
gorm:
driver: mysql
url: root:wisesoft@tcp(172.16.9.19:3306)/codemg?charset=utf8
showSql: true
maxIdle: 5
maxOpen: 3
##########雪花算法配置项##########
snowflake:
workerId: 1
##########yaml配置项##########
yaml:
mode: local ##local / nacos
file: sc-go.yaml
##########nacos配置项##########
nacos:
scheme: http
ipAddr: 127.0.0.1
port: 8848
config:
dataId: sc-go.yaml
namespace: aaa199a4-48a7-4c49-9cdf-5b627ed25fb6
group: DEFAULT_GROUP
sharedConfigs[0]:
dataId: common.yaml
discovery:
namespace: aaa199a4-48a7-4c49-9cdf-5b627ed25fb6
group: DEFAULT_GROUP
serviceName: sc-go
port: 8080
ip:
prefix:
##########redis配置项##########
redis:
database: 0
password: 123456
master: #master
Mode: standalone ## sentinel,cluster,standalone
nodes:
- 127.0.0.1:26379
pool:
poolSize:
minIdleConns: 0
maxIdleConns: 0
dialTimeout: 5000
readTimeout: 5000
writeTimeout: 5000
##########kafka配置项##########
kafka:
nodes:
- 127.0.0.1:9092
group: default-group
producer:
requiredAcks: -1 # 不等待响应:0; 当前节点成功:1 全部节点成功:-1
partitioner: -1
successes: true
errors: true
retryMax: 3
retryBackoff: 100
consumer:
maxOpenRequests: 1
returnErrors: true
autoCommitEnable: true
autoCommitInterval: 1
retryMax: 3
##########反向代理服务器配置项##########
proxy:
port: 8181
cert:
key:
web:
- path: /
dir:
server:
- name: /api
addr: http://localhost:8080
########minio文件上传##########
minio:
bucketName:
endpoint:
accessKeyID:
secretAccessKey:
useSSL: false
#########发送邮件############
email:
host: smtp.163.com
port: 465
username: srandroid@163.com
password: RCBCSDOSWZJTANTI