Reapply SingboxForPanel integration on upstream stable
This commit is contained in:
50
configs/10-base.multi-node.json
Normal file
50
configs/10-base.multi-node.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "/var/lib/sing-box/cache.db"
|
||||
}
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-local",
|
||||
"type": "local"
|
||||
}
|
||||
]
|
||||
},
|
||||
"services": [
|
||||
{
|
||||
"type": "xboard",
|
||||
"panel_url": "https://panel.example.com",
|
||||
"key": "replace-with-node-token",
|
||||
"sync_interval": "1m",
|
||||
"report_interval": "1m",
|
||||
"nodes": [
|
||||
{
|
||||
"node_id": 286
|
||||
},
|
||||
{
|
||||
"node_id": 774
|
||||
},
|
||||
{
|
||||
"node_id": 815
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"inbounds": [],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
||||
42
configs/10-base.single-node.json
Normal file
42
configs/10-base.single-node.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "/var/lib/sing-box/cache.db"
|
||||
}
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns-upstream",
|
||||
"type": "udp",
|
||||
"server": "1.1.1.1",
|
||||
"server_port": 53
|
||||
}
|
||||
]
|
||||
},
|
||||
"services": [
|
||||
{
|
||||
"type": "xboard",
|
||||
"panel_url": "https://panel.example.com",
|
||||
"key": "replace-with-node-token",
|
||||
"sync_interval": "1m",
|
||||
"report_interval": "1m",
|
||||
"node_id": 286
|
||||
}
|
||||
],
|
||||
"inbounds": [],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
||||
12
configs/20-outbounds.example.json
Normal file
12
configs/20-outbounds.example.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
33
configs/panel-response.anytls-acme-dns.json
Normal file
33
configs/panel-response.anytls-acme-dns.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"protocol": "anytls",
|
||||
"listen_ip": "0.0.0.0",
|
||||
"server_port": 45365,
|
||||
"network": null,
|
||||
"networkSettings": null,
|
||||
"server_name": "code.example.com",
|
||||
"accept_proxy_protocol": false,
|
||||
"padding_scheme": [
|
||||
"stop=8",
|
||||
"0=30-30",
|
||||
"1=100-400",
|
||||
"2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000",
|
||||
"3=9-9,500-1000",
|
||||
"4=500-1000",
|
||||
"5=500-1000",
|
||||
"6=500-1000",
|
||||
"7=500-1000"
|
||||
],
|
||||
"cert_config": {
|
||||
"cert_mode": "dns",
|
||||
"domain": "code.example.com",
|
||||
"dns_provider": "tencentcloud",
|
||||
"dns_env": {
|
||||
"TENCENTCLOUD_SECRET_ID": "replace-with-secret-id",
|
||||
"TENCENTCLOUD_SECRET_KEY": "replace-with-secret-key"
|
||||
}
|
||||
},
|
||||
"base_config": {
|
||||
"push_interval": 60,
|
||||
"pull_interval": 60
|
||||
}
|
||||
}
|
||||
16
configs/panel-response.shadowsocks2022.json
Normal file
16
configs/panel-response.shadowsocks2022.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"protocol": "shadowsocks",
|
||||
"listen_ip": "0.0.0.0",
|
||||
"server_port": 30009,
|
||||
"network": null,
|
||||
"networkSettings": null,
|
||||
"cipher": "2022-blake3-aes-256-gcm",
|
||||
"plugin": null,
|
||||
"plugin_opts": null,
|
||||
"server_key": "NjQzMWVlNjVmYTkwODk0OTMyOTg3MzZmYzczMmFlMTI=",
|
||||
"accept_proxy_protocol": false,
|
||||
"base_config": {
|
||||
"push_interval": 60,
|
||||
"pull_interval": 60
|
||||
}
|
||||
}
|
||||
21
configs/panel-response.vless-reality.json
Normal file
21
configs/panel-response.vless-reality.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"protocol": "vless",
|
||||
"listen_ip": "0.0.0.0",
|
||||
"server_port": 18443,
|
||||
"network": "tcp",
|
||||
"tls": 2,
|
||||
"flow": "xtls-rprx-vision",
|
||||
"accept_proxy_protocol": false,
|
||||
"tls_settings": {
|
||||
"server_name": "git.example.com",
|
||||
"server_port": "443",
|
||||
"public_key": "replace-with-client-visible-public-key",
|
||||
"private_key": "replace-with-server-private-key",
|
||||
"short_id": "0123456789abcdef",
|
||||
"allow_insecure": false
|
||||
},
|
||||
"base_config": {
|
||||
"push_interval": 60,
|
||||
"pull_interval": 60
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user