feat: 初始化Node.js 4G短信网关项目
- 实现AT指令通信和4G模组管理 - 支持PDU模式短信接收和发送 - 长短信自动合并功能 - 多通道推送支持(钉钉/飞书/Telegram等) - 管理员短信远程控制 - RESTful API接口 - 完整的日志系统
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"serial": {
|
||||
"path": "/dev/ttyUSB0",
|
||||
"baudRate": 115200
|
||||
},
|
||||
"smtp": {
|
||||
"server": "smtp.qq.com",
|
||||
"port": 465,
|
||||
"user": "your@qq.com",
|
||||
"pass": "your_auth_code",
|
||||
"sendTo": "recipient@example.com"
|
||||
},
|
||||
"adminPhone": "13800138000",
|
||||
"numberBlackList": [
|
||||
"10086",
|
||||
"10010"
|
||||
],
|
||||
"pushChannels": [
|
||||
{
|
||||
"enabled": true,
|
||||
"type": "dingtalk",
|
||||
"name": "钉钉通知",
|
||||
"url": "https://oapi.dingtalk.com/robot/send?access_token=xxx",
|
||||
"secret": "SECxxx",
|
||||
"key1": "",
|
||||
"key2": "",
|
||||
"customBody": ""
|
||||
},
|
||||
{
|
||||
"enabled": false,
|
||||
"type": "feishu",
|
||||
"name": "飞书通知",
|
||||
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/xxx",
|
||||
"secret": "",
|
||||
"key1": "",
|
||||
"key2": "",
|
||||
"customBody": ""
|
||||
},
|
||||
{
|
||||
"enabled": false,
|
||||
"type": "telegram",
|
||||
"name": "Telegram通知",
|
||||
"url": "1234567890:ABCdefGHIjklMNOpqrsTUVwxyz",
|
||||
"secret": "",
|
||||
"key1": "987654321",
|
||||
"key2": "",
|
||||
"customBody": ""
|
||||
},
|
||||
{
|
||||
"enabled": false,
|
||||
"type": "pushplus",
|
||||
"name": "PushPlus通知",
|
||||
"url": "",
|
||||
"secret": "",
|
||||
"key1": "your_pushplus_token",
|
||||
"key2": "",
|
||||
"customBody": ""
|
||||
},
|
||||
{
|
||||
"enabled": false,
|
||||
"type": "custom",
|
||||
"name": "自定义推送",
|
||||
"url": "https://your-webhook.com/api/notify",
|
||||
"secret": "",
|
||||
"key1": "",
|
||||
"key2": "",
|
||||
"customBody": "{\"from\":\"{sender}\",\"msg\":\"{message}\",\"ts\":\"{timestamp}\"}"
|
||||
}
|
||||
],
|
||||
"api": {
|
||||
"port": 3000,
|
||||
"auth": {
|
||||
"username": "admin",
|
||||
"password": "admin123"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user