forked from boris1993/sms_forwarder_air780_esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
105 lines (96 loc) · 2.41 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
local config = {}
config.log_level = log.LOG_INFO
-- ESP32板子型号
-- esp32c3 / esp32s3
config.board_type = "esp32s3"
-- 是否关闭Air780e网络指示灯
config.disable_netled = true
-- 是否禁止RNDIS
-- 禁止RNDIS可以防止流量流失
config.disable_rndis = true
-- 是否在检查不到SIM卡时重试
-- 目前发现1118版本AT固件无法通过重试来检测到后插入的SIM卡
-- 而1156版本AT固件第一次检测有概率检测不到SIM卡,需要重试
config.retry_sim_detection = true
config.wifi = {
{
ssid = "Wi-Fi名",
password = "Wi-Fi密码",
},
-- {
-- ssid = "",
-- password = "",
-- }
}
-- 手动配置DNS服务器
-- 可以留空,也可以设定数个
-- 但是多了也没用,要自己设定的话,放一两个就够了
config.dns_servers = {
"119.29.29.29",
"223.5.5.5",
"8.8.8.8",
"1.1.1.1"
}
config.notification_channel = {
-- resend邮箱 https://resend.com/emails
resend = {
enabled = false,
api_token = "re_********",
fromEmail = '*********** <Air780@resend.dev>',
toEmail = '**********@qq.com',
},
-- 合宙推送服务器
luatos = {
enabled = false,
token = ""
},
-- Bark
bark = {
enabled = false,
api_key = ""
},
-- Server酱
server_chan = {
enabled = false,
send_key = ""
},
-- 钉钉Webhook机器人
ding_talk = {
enabled = false,
-- Webhook地址
webhook_url = "",
-- 机器人安全设定中的关键词
keyword = ""
},
-- telegram 机器人
telegram = {
enabled = false,
-- Webhook地址
webhook_url = "",
-- chat_id, 通过 https://api.telegram.org/bot<token>/getUpdates 获取
chat_id = ""
},
-- PushPlus 推送加
pushplus = {
enabled = false,
token = ""
},
-- 飞书机器人
feishu = {
enabled = false,
app_id = "",
app_secret = "",
receive_id="" -- 填写接收推送人的邮箱(通常飞书账户需要绑定邮箱)
},
-- 飞书群聊机器人
feishu_webhook = {
enabled = false,
webhook_url = "",
secret = "",
},
wecom = {
enabled = false,
url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=", -- 填写企业微信机器人推送 URL
}
}
return config