mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"log": {
|
|
"level": "error"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "local",
|
|
"tag": "default"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct-out"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"protocol": "dns",
|
|
"action": "hijack-dns"
|
|
}
|
|
],
|
|
"final": "direct-out"
|
|
},
|
|
"services": [
|
|
{
|
|
"type": "manager",
|
|
"tag": "my-manager",
|
|
"database": {
|
|
"driver": "postgresql",
|
|
"dsn": "postgresql://postgres:postgres@localhost:5432/manager?sslmode=disable"
|
|
}
|
|
},
|
|
{ // http://127.0.0.1:8000
|
|
// Username: admin
|
|
// Password: admin
|
|
"type": "admin-panel",
|
|
"tag": "my-admin-panel",
|
|
"listen_port": 8000,
|
|
"manager": "my-manager",
|
|
"database": {
|
|
"driver": "postgresql",
|
|
"dsn": "postgresql://postgres:postgres@localhost:5432/adminpanel?sslmode=disable"
|
|
}
|
|
},
|
|
{
|
|
"type": "node-manager-server", // for connecting nodes
|
|
"listen_port": 7000,
|
|
"manager": "my-manager",
|
|
"tls": { // https://sing-box.sagernet.org/configuration/shared/tls/#inbound
|
|
"enabled": true,
|
|
"server_name": "example.com",
|
|
"certificate_path": "/path/to/fullchain.pem",
|
|
"key_path": "/path/to/privkey.pem"
|
|
},
|
|
}
|
|
]
|
|
}
|