Skip to content

Commit 62e96cd

Browse files
committed
feat: dae - avoid rate limit of GitHub API & Docker Hub API
1 parent 4bb53d0 commit 62e96cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

hosts/12kingdoms-suzu/microvm/suzi/config.dae

+12
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ group {
209209
policy: min_avg10
210210
}
211211

212+
proxy-random {
213+
filter: name(keyword: 'UK')
214+
filter: name(keyword: '英国')
215+
policy: random
216+
}
217+
212218
sg {
213219
filter: name(keyword: 'Singapore')
214220
filter: name(keyword: '新加坡')
@@ -268,6 +274,12 @@ routing {
268274
# SSH - tcp port 22 is blocked by many proxy servers.
269275
dport(22) && !dip(geoip:cn) && !domain(geosite:cn) -> ssh-proxy
270276

277+
### GitHub / Docker Hub
278+
### randomly select a node from the group for every connection
279+
### to avoid the rate limit of GitHub API and Docker Hub API
280+
domain(geosite:github) -> proxy-random
281+
domain(geosite:docker) -> proxy-random
282+
271283
### OpenAI
272284
domain(geosite:openai) -> sg
273285
domain(regex:'.+\.openai$') -> sg

0 commit comments

Comments
 (0)