mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-12-28 07:14:18 +08:00
update
This commit is contained in:
parent
6572945aa1
commit
ca4f3783fd
4
.github/workflows/run.yml
vendored
4
.github/workflows/run.yml
vendored
@ -72,7 +72,7 @@ jobs:
|
||||
|
||||
- name: Get and add direct domains into temp-direct.txt file
|
||||
run: |
|
||||
curl -sSL ${CHINA_DOMAINS_URL} | sed '/^[^\.]/d' | sed '/^\s*#/d' | sed 's/^\.\([^\.]*\)\./\1\./g' > temp-direct.txt
|
||||
curl -sSL ${CHINA_DOMAINS_URL} | sed '/^\s*#/d' | sed '/^[^\.]/ s/^/full: /' | sed 's/^\.\([^.]*\)/\1/' > temp-direct.txt
|
||||
curl -sSL ${CUSTOM_DIRECT} | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> temp-direct.txt
|
||||
|
||||
- name: Get and add proxy domains into temp-proxy.txt file
|
||||
@ -219,6 +219,8 @@ jobs:
|
||||
install -Dp ./custom/publish/geosite.dat ./publish/
|
||||
install -Dp ./sing-geosite/geosite.db ./publish/
|
||||
install -Dp ./sing-geoip/geoip.db ./publish/
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax_Domain.yaml | sed '/^\s*#/d' > ./publish/cn_domain.yaml
|
||||
curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Proxy/Proxy_Domain.yaml | sed '/^\s*#/d' > ./publish/proxy.yaml
|
||||
cd ./publish || exit 1
|
||||
|
||||
|
||||
|
23
README.md
23
README.md
@ -26,7 +26,15 @@
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.db)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.db)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.db)
|
||||
|
||||
- **rule-set**
|
||||
- **cn_domain.yaml**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/cn_domain.yaml)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn_domain.yaml)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn_domain.yaml)
|
||||
- **proxy.yaml**
|
||||
- [Github release](https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/proxy.yaml)
|
||||
- [JSdelivr](https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/proxy.yaml)
|
||||
- [JSdelivr-CF](https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/proxy.yaml)
|
||||
### country.mmdb,geoip.dat,geoip.db
|
||||
|
||||
同 [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)
|
||||
@ -51,8 +59,18 @@
|
||||
/
|
||||
ios_rule_script](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/PrivateTracker)
|
||||
|
||||
## 示例
|
||||
### 示例
|
||||
```yaml
|
||||
rule-providers:
|
||||
cn:
|
||||
behavior: domain
|
||||
interval: 86400
|
||||
path: ./provider/rule-set/cn_domain.yaml
|
||||
type: http
|
||||
url: "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/cn_domain.yaml"
|
||||
|
||||
rules:
|
||||
- RULE-SET,rule1,REJECT
|
||||
- GEOSITE,category-ads-all,REJECT
|
||||
- GEOSITE,private,DIRECT
|
||||
- GEOSITE,youtube,PROXY
|
||||
@ -77,6 +95,7 @@ ios_rule_script](https://github.com/blackmatrix7/ios_rule_script/tree/master/rul
|
||||
- DST-PORT,80/8080/443/8443,PROXY
|
||||
- MATCH,DIRECT
|
||||
```
|
||||
|
||||
## 致谢
|
||||
|
||||
- [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)
|
||||
|
Loading…
x
Reference in New Issue
Block a user