diff options
| author | loyalsoldier <[email protected]> | 2021-08-27 18:27:16 +0800 |
|---|---|---|
| committer | loyalsoldier <[email protected]> | 2021-08-29 20:09:57 +0800 |
| commit | 85a343aca99d864c517f13cd3169ebcc910ec0d8 (patch) | |
| tree | eccfd3680d9dc6e22f265a9525dccac85902c2ab /config-example.json | |
| parent | 2b32e8845d9e55b6c23ebb41bd0f382100094386 (diff) | |
Refactor: use plugin architecture to support multiple I/O formats
Diffstat (limited to 'config-example.json')
| -rw-r--r-- | config-example.json | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/config-example.json b/config-example.json new file mode 100644 index 00000000..cc8cbe8c --- /dev/null +++ b/config-example.json @@ -0,0 +1,143 @@ +{ + "input": [ + { + "type": "maxmindGeoLite2CountryCSV", + "action": "add", + "args": { + "country": "./geolite2/GeoLite2-Country-Locations-en.csv", + "ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv", + "ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv", + "wantedList": ["cn", "us"] + } + }, + { + "type": "maxmindGeoLite2CountryCSV", + "action": "remove", + "args": { + "country": "./geolite2/GeoLite2-Country-Locations-en.csv", + "ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv", + "ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv", + "wantedList": ["cn"], + "onlyIPType": "ipv4" + } + }, + { + "type": "text", + "action": "add", + "args": { + "inputDir": "./data", + "onlyIPType": "ipv4" + } + }, + { + "type": "text", + "action": "add", + "args": { + "name": "mylist", + "uri": "./an/example/dir/mycidr.txt", + "onlyIPType": "ipv6" + } + }, + { + "type": "text", + "action": "add", + "args": { + "name": "cn", + "uri": "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt", + "onlyIPType": "ipv4" + } + }, + { + "type": "private", + "action": "add" + }, + { + "type": "test", + "action": "add" + } + ], + "output": [ + { + "type": "v2rayGeoIPDat", + "action": "output", + "args": { + "outputName": "geoip.dat", + "outputDir": "./publish" + } + }, + { + "type": "v2rayGeoIPDat", + "action": "output", + "args": { + "outputName": "geoip-only-cn-private.dat", + "outputDir": "./publish", + "wantedList": ["cn", "private"] + } + }, + { + "type": "v2rayGeoIPDat", + "action": "output", + "args": { + "outputDir": "./publish", + "oneFilePerList": true, + "wantedList": ["cn", "private", "test"], + "onlyIPType": "ipv4" + } + }, + { + "type": "maxmindMMDB", + "action": "output" + }, + { + "type": "maxmindMMDB", + "action": "output", + "args": { + "outputName": "country-only-cn-private.mmdb", + "wantedList": ["cn", "private"] + } + }, + { + "type": "maxmindMMDB", + "action": "output", + "args": { + "outputDir": "./publish", + "outputName": "country-only-cn-private.mmdb", + "wantedList": ["cn", "private"], + "onlyIPType": "ipv4" + } + }, + { + "type": "text", + "action": "output", + "args": { + "outputDir": "./publish", + "wantedList": ["cn", "us", "private"], + "onlyIPType": "ipv6" + } + }, + { + "type": "clashRuleSetClassical", + "action": "output", + "args": { + "wantedList": ["cn", "private", "test"], + "onlyIPType": "ipv4" + } + }, + { + "type": "clashRuleSet", + "action": "output", + "args": { + "wantedList": ["cn", "private", "test"], + "onlyIPType": "ipv6" + } + }, + { + "type": "surgeRuleSet", + "action": "output", + "args": { + "wantedList": ["cn", "private", "test"], + "onlyIPType": "ipv4" + } + } + ] +} |
