feat: dae - avoid rate limit of GitHub API & Docker Hub API

This commit is contained in:
Ryan Yin
2024-08-16 11:44:30 +08:00
parent 4bb53d0190
commit 62e96cde7e

View File

@@ -209,6 +209,12 @@ group {
policy: min_avg10
}
proxy-random {
filter: name(keyword: 'UK')
filter: name(keyword: '英国')
policy: random
}
sg {
filter: name(keyword: 'Singapore')
filter: name(keyword: '新加坡')
@@ -268,6 +274,12 @@ routing {
# SSH - tcp port 22 is blocked by many proxy servers.
dport(22) && !dip(geoip:cn) && !domain(geosite:cn) -> ssh-proxy
### GitHub / Docker Hub
### randomly select a node from the group for every connection
### to avoid the rate limit of GitHub API and Docker Hub API
domain(geosite:github) -> proxy-random
domain(geosite:docker) -> proxy-random
### OpenAI
domain(geosite:openai) -> sg
domain(regex:'.+\.openai$') -> sg