Normalize json snippets

This commit is contained in:
Fangliding
2026-05-17 07:38:56 +08:00
parent 6832019145
commit 3deee863e8
18 changed files with 216 additions and 170 deletions
+27 -25
View File
@@ -48,42 +48,44 @@ API 服务监听的 IP 和端口。这是一个可选配置项。
可以在 inbounds 配置中增加一个 api 的 inbound
```json
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10085,
"protocol": "dokodemo-door",
"settings": {
"rewriteAddress": "127.0.0.1"
},
"tag": "api"
}
]
{
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10085,
"protocol": "dokodemo-door",
"settings": {
"rewriteAddress": "127.0.0.1"
},
"tag": "api"
}
]
}
```
在路由配置中增加针对 api inbound 的路由规则
```json
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api"
}
]
{
"routing": {
"rules": [
{
"inboundTag": ["api"],
"outboundTag": "api"
}
]
}
}
```
在基础配置中增加 api
```json
"api": {
"tag": "api",
"services": [
"StatsService"
]
{
"api": {
"tag": "api",
"services": ["StatsService"]
}
}
```
+4 -3
View File
@@ -130,12 +130,13 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进
:::
```json
"domainsExcluded": [
{
"domainsExcluded": [
"courier.push.apple.com", // iOS 推送通知
"Mijia Cloud", // 米家智能设备
"dlg.io.mi.com"
]
]
}
```
> `ipsExcluded`: [string]
+4 -2
View File
@@ -128,8 +128,10 @@ VLESS 极简反向代理配置。
存在此项代表来自该用户的连接可以被用作可以用于建立反向代理隧道,同时禁用普通的正向代理用途。
```json
"reverse": {
"tag": "r-outbound"
{
"reverse": {
"tag": "r-outbound"
}
}
```
+5 -3
View File
@@ -112,9 +112,11 @@ VLESS 极简反向代理配置,会保留公网端的真实源 IP 信息。
存在此项代表该出站可以被用作 VLESS 反向代理出站,其会自动向服务端建立连接注册反向代理隧道。
```json
"reverse": {
"tag": "r-inbound",
"sniffing" : {}
{
"reverse": {
"tag": "r-inbound",
"sniffing": {}
}
}
```
+18 -14
View File
@@ -121,13 +121,15 @@
反向代理配置:
```json
"reverse": {
"bridges": [
{
"tag": "bridge",
"domain": "reverse-proxy.xray.internal"
}
]
{
"reverse": {
"bridges": [
{
"tag": "bridge",
"domain": "reverse-proxy.xray.internal"
}
]
}
}
```
@@ -198,13 +200,15 @@ outbound:
反向代理配置:
```json
"reverse": {
"portals": [
{
"tag": "portal",
"domain": "reverse-proxy.xray.internal" // 必须和 bridge 的配置一样
}
]
{
"reverse": {
"portals": [
{
"tag": "portal",
"domain": "reverse-proxy.xray.internal" // 必须和 bridge 的配置一样
}
]
}
}
```
+14 -10
View File
@@ -240,15 +240,17 @@ PS: 如果有正常上网的域名流量被 AsIs 的 freedom 出站送过来,
使用前请确保你了解 Socket 编程。
```json
"customSockopt": [
{
"system": "linux",
"type": "str",
"level":"6",
"opt": "13",
"value": "bbr"
}
]
{
"customSockopt": [
{
"system": "linux",
"type": "str",
"level": "6",
"opt": "13",
"value": "bbr"
}
]
}
```
> `system`: ""
@@ -286,11 +288,13 @@ RFC-8305 实现的 happyEyeballs,仅适用于 TCP。当目标为域名时对
### HappyEyeballsObject
```json
"happyEyeballs": {
{
"happyEyeballs": {
"tryDelayMs": 250,
"prioritizeIPv6": false,
"interleave": 1,
"maxConcurrentTry": 4
}
}
```