summaryrefslogtreecommitdiff
path: root/config.json
diff options
context:
space:
mode:
authorLoyalsoldier <[email protected]>2024-08-10 08:51:19 +0800
committerLoyalsoldier <[email protected]>2024-08-10 09:03:41 +0800
commitffa1a3145e05eb2c02738e5b5f9ce45609edc5fa (patch)
tree34ebda32bb1392b1ea1ff7a51f6a4144b10205d2 /config.json
parent55d12b35087ba35e9bd6411342702da22542ec82 (diff)
Feat: get CIDR data by using json input format instead of jq
Diffstat (limited to 'config.json')
-rw-r--r--config.json36
1 files changed, 34 insertions, 2 deletions
diff --git a/config.json b/config.json
index e75942f0..3a17cf4d 100644
--- a/config.json
+++ b/config.json
@@ -69,10 +69,42 @@
}
},
{
- "type": "text",
+ "type": "json",
"action": "add",
"args": {
- "inputDir": "./data"
+ "name": "google",
+ "uri": "https://www.gstatic.com/ipranges/goog.json",
+ "jsonPath": ["prefixes.#.ipv4Prefix", "prefixes.#.ipv6Prefix"]
+ }
+ },
+ {
+ "type": "json",
+ "action": "add",
+ "args": {
+ "name": "google",
+ "uri": "https://www.gstatic.com/ipranges/cloud.json",
+ "jsonPath": ["prefixes.#.ipv4Prefix", "prefixes.#.ipv6Prefix"]
+ }
+ },
+ {
+ "type": "json",
+ "action": "add",
+ "args": {
+ "name": "fastly",
+ "uri": "https://api.fastly.com/public-ip-list",
+ "jsonPath": ["addresses", "ipv6_addresses"]
+ }
+ },
+ {
+ "type": "json",
+ "action": "add",
+ "args": {
+ "name": "cloudfront",
+ "uri": "https://ip-ranges.amazonaws.com/ip-ranges.json",
+ "jsonPath": [
+ "prefixes.#(service==\"CLOUDFRONT\")#.ip_prefix",
+ "ipv6_prefixes.#(service==\"CLOUDFRONT\")#.ipv6_prefix"
+ ]
}
},
{