mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-06 12:55:09 +02:00
feat: dae - avoid rate limit of GitHub API & Docker Hub API
This commit is contained in:
@@ -209,6 +209,12 @@ group {
|
|||||||
policy: min_avg10
|
policy: min_avg10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proxy-random {
|
||||||
|
filter: name(keyword: 'UK')
|
||||||
|
filter: name(keyword: '英国')
|
||||||
|
policy: random
|
||||||
|
}
|
||||||
|
|
||||||
sg {
|
sg {
|
||||||
filter: name(keyword: 'Singapore')
|
filter: name(keyword: 'Singapore')
|
||||||
filter: name(keyword: '新加坡')
|
filter: name(keyword: '新加坡')
|
||||||
@@ -268,6 +274,12 @@ routing {
|
|||||||
# SSH - tcp port 22 is blocked by many proxy servers.
|
# SSH - tcp port 22 is blocked by many proxy servers.
|
||||||
dport(22) && !dip(geoip:cn) && !domain(geosite:cn) -> ssh-proxy
|
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
|
### OpenAI
|
||||||
domain(geosite:openai) -> sg
|
domain(geosite:openai) -> sg
|
||||||
domain(regex:'.+\.openai$') -> sg
|
domain(regex:'.+\.openai$') -> sg
|
||||||
|
|||||||
Reference in New Issue
Block a user