Files
socks5-monitor/config.example.json

66 lines
1.5 KiB
JSON

{
"interval_seconds": 300,
"timeout_seconds": 8,
"target_host": "www.baidu.com",
"target_port": 443,
"fail_threshold": 3,
"recover_threshold": 1,
"max_checks_per_proxy": 500,
"db_path": "/app/data/monitor.db",
"proxies": [
{
"id": "example-local",
"name": "示例 SOCKS5(默认停用)",
"host": "127.0.0.1",
"port": 1080,
"username": "",
"password": "",
"target_host": "www.baidu.com",
"target_port": 443,
"timeout_seconds": 8,
"interval_seconds": 300,
"fail_threshold": 3,
"recover_threshold": 1,
"enabled": false
}
],
"notifications": {
"enabled": true,
"timeout_seconds": 10,
"channels": [
{
"id": "ch-bark",
"type": "bark",
"name": "Bark",
"enabled": false,
"config": {
"server": "https://api.day.app",
"key": "填你的BarkKey",
"group": "SOCKS5监控"
}
},
{
"id": "ch-pushplus",
"type": "pushplus",
"name": "PushPlus",
"enabled": false,
"config": {
"token": "填你的PushPlusToken",
"template": "txt",
"topic": ""
}
},
{
"id": "ch-autman",
"type": "autman",
"name": "Autman",
"enabled": false,
"config": {
"url": "http://ip:port/m/push1",
"access_token": "填你的Autman鉴权token"
}
}
]
}
}