mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-30 19:08:10 +03:00
Check json format in CI
This commit is contained in:
@@ -108,7 +108,7 @@ Configure Xray `dokodemo-door` to listen on port 12345, enable `followRedirect`
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
Your Server Configuration
|
||||
// Your Server Configuration
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user