singboxer/templates/server.json

39 lines
692 B
JSON

{
"log": {
"level": "info",
"timestamp": true
},
"inbounds": [
{
"type": "{{PROTOCOL}}",
"tag": "{{PROTOCOL}}-in",
"listen": "::",
"listen_port": 443,
"users": [
{
"name": "user1",
"password": "{{PASSWORD_OR_UUID}}"
}
],
"tls": {
"enabled": true,
"certificate_path": "/etc/sing-box/cert.pem",
"key_path": "/etc/sing-box/key.pem"
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{ "action": "sniff" },
{ "ip_is_private": true, "action": "reject" }
],
"final": "direct"
}
}