403/templates/singbox.json
2025-02-19 19:25:04 +08:00

128 lines
3.2 KiB
JSON

{
"log": {
"disabled": false,
"level": "debug",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "local",
"tag": "dns:local"
},
{
"type": "h3",
"tag": "dns:cloudflare",
"server": "1.1.1.1",
"server_port": 443
}
],
"rules": [
{
"auth_user": "direct",
"action": "route",
"server": "dns:cloudflare"
},
{
"auth_user": "warp",
"action": "route",
"server": "dns:cloudflare"
}
]
},
"ntp": {
"enabled": true,
"server": "pool.ntp.org",
"server_port": 123,
"interval": "60m"
},
"endpoints": [],
"inbounds": [
{
"type": "mixed",
"tag": "in:mixed",
"listen": "::",
"listen_port": 8080,
"users": [
{
"username": "direct",
"password": "password"
},
{
"username": "warp",
"password": "password"
}
],
"set_system_proxy": false
},
{
"type": "shadowsocks",
"tag": "in:ss",
"listen": "::",
"listen_port": 443,
"method": "2022-blake3-aes-256-gcm",
"password": "{{ op://servers/self_proxy/ss_server_password }}",
"users": [
{
"name": "direct",
"password": "{{ op://servers/self_proxy/ss_direct_user_password }}"
},
{
"name": "warp",
"password": "{{ op://servers/self_proxy/ss_warp_user_password }}"
}
],
"multiplex": {
"enabled": true,
"padding": true
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "out:direct"
},
{
"type": "socks",
"tag": "out:warp",
"server": "warp",
"server_port": 1080,
"version": "5"
}
],
"route": {
"rules": [
{
"inbound": [
"in:ss",
"in:mixed"
],
"auth_user": "direct",
"action": "route",
"outbound": "out:direct"
},
{
"inbound": [
"in:ss",
"in:mixed"
],
"auth_user": "warp",
"action": "route",
"outbound": "out:warp"
},
{
"ip_is_private": true,
"outbound": [
"out:direct",
"out:warp"
],
"action": "reject"
}
],
"default_domain_resolver": {
"server": "dns:local"
},
"final": "out:direct"
}
}