Check json format in CI

This commit is contained in:
Fangliding
2026-05-25 21:37:31 +08:00
parent a2c2c5494e
commit f6bb9a7bc6
22 changed files with 350 additions and 298 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ Configure Xray `dokodemo-door` to listen on port 12345, enable `followRedirect`
],
"outbounds": [
{
Your Server Configuration
// Your Server Configuration
}
]
}
+6 -14
View File
@@ -95,17 +95,13 @@ lsmod | grep wireguard
```json
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"services": ["HandlerService", "LoggerService", "StatsService"],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": <port>,
"port": 12345, // <port>
"protocol": "dokodemo-door",
"settings": {
"rewriteAddress": "127.0.0.1"
@@ -127,13 +123,13 @@ lsmod | grep wireguard
"tag": "wg0",
"streamSettings": {
"sockopt": {
"mark": // <mark>
"mark": 255 // <mark>
}
},
"settings": {
"domainStrategy": "UseIPv6"
}
}, // Users with fwmark set to <mark> use the specified strategy "UseIPv6" or "UseIPv4"
}, // Users with fwmark set to <mark> use the specified strategy "UseIPv6" or "UseIPv4"
// <--Please choose between different schemes--> Scheme 2: sendThrough
{
"tag": "wg0",
@@ -174,9 +170,7 @@ lsmod | grep wireguard
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"inboundTag": ["api"],
"outboundTag": "api"
},
{
@@ -188,9 +182,7 @@ lsmod | grep wireguard
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
]
"protocol": ["bittorrent"]
}
]
},
@@ -125,7 +125,7 @@ The configuration file should listen on port 12345 and enable tproxy:
],
"outbounds": [
{
Your_Server_Configuration
// Your Server Configuration
}
]
}
+3 -3
View File
@@ -70,7 +70,7 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
1. Run `wgcf-cli register` to register. Output:
```json
```
❯ wgcf-cli register
{
"endpoint": {
@@ -151,7 +151,7 @@ Recommended routing strategy: `IPIfNonMatch`.
Add the following to your existing routing rules:
```json
```
{
"domain": [
"geosite:cn"
@@ -195,7 +195,7 @@ Add the following to your existing routing rules:
"protocol": "vmess",
"settings": {
"address": "My_Server_IP",
"port": My_Port,
"port": 12345, // My_Port
"id": "My_UUID",
"security": "auto"
},