-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
54 lines (44 loc) · 1.08 KB
/
config.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
# 数据库的配置信息
db:
addr: postgres://hlug:hlug@db:5432/mirror?sslmode=disable
# addr: postgres://hlug:hlug@127.0.0.1:5432/mirror?sslmode=disable
driver: postgres
# git相关配置,如果要开启git仓库同步的话需要git服务端具有push to create的功能
git:
username: jiajunCheng
password: chengxin2002
addr: https://core.azw.net.cn:30000/git/
# gin的相关配置
api:
addr: ":8080" #运行地址
# redis缓存配置
redis:
addr: "redis:6379"
password: ""
db: ""
poolSize: ""
# 使用了gin的jwt认证中间件
auth:
secret-key: "opensource"
username: "admin"
password: "admin"
# 日志配置信息
log:
path: "/log"
notify:
webHookURL: "https://hooks.slack.com/services/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"
Channel: "#bot-mirror-status"
IconEmoji: ":ghost:"
Username: "mirror"
go:
addr: ":8081"
post:
path: "/post"
# 安全性控制
security:
type: "ip"
ipRange: "127.0.0.1/0"
# 关于域名的配置
domain:
# 存储镜像的域名,或者设置为主机的ip地址
storage: "https://doc.hlug.cn/pages/"