File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,15 @@ example.com {
9898不配置也可以,程序内置有默认值
9999```
100100[server]
101- # 监听地址,默认监听所有接口
102101host = "0.0.0.0"
103102# 监听端口
104103port = 5000
105104# Github文件大小限制(字节),默认2GB
106105fileSize = 2147483648
107106
108107[rateLimit]
109- # 每个IP每小时允许的请求数(注意Docker镜像每个层为一个请求 )
110- requestLimit = 200
108+ # 每个IP每小时允许的请求数(注意Docker镜像会有多个层,会消耗多个次数 )
109+ requestLimit = 500
111110# 限流周期(小时)
112111periodHours = 1.0
113112
@@ -122,7 +121,8 @@ whiteList = [
122121# IP黑名单,支持单个IP或IP段
123122# 黑名单中的IP将被直接拒绝访问
124123blackList = [
125- "192.168.100.1"
124+ "192.168.100.1",
125+ "192.168.100.0/24"
126126]
127127
128128[proxy]
@@ -136,7 +136,13 @@ blackList = [
136136 "baduser/malicious-repo",
137137 "*/malicious-repo",
138138 "baduser/*"
139- ]
139+ ]
140+
141+ # SOCKS5代理配置,支持有用户名/密码认证和无认证模式
142+ # 无认证: socks5://127.0.0.1:1080
143+ # 有认证: socks5://username:[email protected] :1080 144+ # 留空不使用代理
145+ socks5 = ""
140146
141147[download]
142148# 批量下载离线镜像数量限制
You can’t perform that action at this time.
0 commit comments