403/templates/sing-box-reality-server/sing-box-reality-server.json
reonokiy 83b897bc7a
Some checks failed
Build and Push Docker Image / build (push) Failing after 15s
update
2025-05-17 20:34:21 +08:00

142 lines
3.7 KiB
JSON

{
"log": {
"level": "info",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "dns:local",
"type": "local"
},
{
"tag": "dns:cloudflare",
"type": "h3",
"server": "1.1.1.1",
"server_port": 443
}
]
},
"ntp": {
"enabled": true,
"server": "pool.ntp.org",
"server_port": 123,
"interval": "60m",
"domain_resolver": {
"server": "dns:cloudflare",
"strategy": "ipv4_only",
"disable_cache": false
}
},
"inbounds": [
{
"type": "vless",
"tag": "in:vless",
"listen": "::",
"listen_port": 443,
"users": [
{
"name": "direct",
"uuid": "${DIRECT_UUID}",
"flow": "xtls-rprx-vision"
},
{
"name": "warp",
"uuid": "${WARP_UUID}",
"flow": "xtls-rprx-vision"
}
],
"tls": {
"enabled": true,
"server_name": "${DOMAIN}",
"reality": {
"enabled": true,
"handshake": {
"server": "${DOMAIN}",
"server_port": 443
},
"private_key": "${PRIVATE_KEY}",
"short_id": [
"${SHORT_ID}"
]
}
},
"multiplex": {
"enabled": true,
"padding": true,
"brutal": {
"enabled": true,
"up_mbps": ${UP_MBPS},
"down_mbps": ${DOWN_MBPS}
}
}
}
],
"endpoints": [
{
"tag": "out:warp",
"type": "wireguard",
"system": false,
"address": [
"${WARP_IPV4}",
"${WARP_IPV6}"
],
"mtu": 1280,
"private_key": "${WARP_PRIVATE_KEY}",
"peers": [
{
"address": "engage.cloudflareclient.com",
"port": 2408,
"public_key": "${WARP_PUBLIC_KEY}",
"allowed_ips": [
"0.0.0.0/0", "::/0"
],
"persistent_keepalive_interval": 10
}
],
"domain_resolver": {
"server": "dns:cloudflare",
"strategy": "ipv4_only",
"disable_cache": false
}
}
],
"outbounds": [
{
"tag": "out:direct",
"type": "direct"
}
],
"route": {
"rules": [
{
"ip_is_private": true,
"outbound": [
"out:direct",
"out:warp"
],
"action": "reject"
},
{
"inbound": [
"in:vless"
],
"auth_user": "direct",
"action": "route",
"outbound": "out:direct"
},
{
"inbound": [
"in:vless"
],
"auth_user": "warp",
"action": "route",
"outbound": "out:warp"
}
],
"default_domain_resolver": {
"server": "dns:cloudflare"
},
"final": "out:warp"
}
}