config.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. return {
  2. -- 通知类型, 支持配置多个
  3. -- NOTIFY_TYPE = {"custom_post", "telegram", "pushdeer", "bark", "dingtalk", "feishu", "wecom", "pushover", "inotify", "next-smtp-proxy", "gotify"},
  4. NOTIFY_TYPE = "custom_post",
  5. --
  6. -- custom_post 通知配置, 自定义 POST 请求, CUSTOM_POST_BODY_TABLE 中的 {msg} 会被替换为通知内容
  7. CUSTOM_POST_URL = "https://sctapi.ftqq.com/<SENDKEY>.send",
  8. CUSTOM_POST_CONTENT_TYPE = "application/json",
  9. CUSTOM_POST_BODY_TABLE = {["title"] = "这里是标题", ["desp"] = "这里是内容, 会被替换掉:\n{msg}\n{msg}"},
  10. --
  11. -- telegram 通知配置, https://github.com/0wQ/telegram-notify 或者自行反代
  12. TELEGRAM_API = "https://api.telegram.org/bot{token}/sendMessage",
  13. TELEGRAM_CHAT_ID = "",
  14. --
  15. -- pushdeer 通知配置, https://www.pushdeer.com/
  16. PUSHDEER_API = "https://api2.pushdeer.com/message/push",
  17. PUSHDEER_KEY = "",
  18. --
  19. -- bark 通知配置, https://github.com/Finb/Bark
  20. BARK_API = "https://api.day.app",
  21. BARK_KEY = "",
  22. --
  23. -- dingtalk 通知配置, https://open.dingtalk.com/document/robots/custom-robot-access
  24. DINGTALK_WEBHOOK = "",
  25. --
  26. -- feishu 通知配置, https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
  27. FEISHU_WEBHOOK = "",
  28. --
  29. -- wecom 通知配置, https://developer.work.weixin.qq.com/document/path/91770
  30. WECOM_WEBHOOK = "",
  31. --
  32. -- pushover 通知配置, https://pushover.net/api
  33. PUSHOVER_API_TOKEN = "",
  34. PUSHOVER_USER_KEY = "",
  35. --
  36. -- inotify 通知配置, https://github.com/xpnas/Inotify 或者使用合宙提供的 https://push.luatos.org
  37. INOTIFY_API = "https://push.luatos.org/XXXXXX.send",
  38. --
  39. -- next-smtp-proxy 通知配置, https://github.com/0wQ/next-smtp-proxy
  40. NEXT_SMTP_PROXY_API = "",
  41. NEXT_SMTP_PROXY_USER = "",
  42. NEXT_SMTP_PROXY_PASSWORD = "",
  43. NEXT_SMTP_PROXY_HOST = "smtp-mail.outlook.com",
  44. NEXT_SMTP_PROXY_PORT = 587,
  45. NEXT_SMTP_PROXY_FORM_NAME = "Air780E",
  46. NEXT_SMTP_PROXY_TO_EMAIL = "",
  47. NEXT_SMTP_PROXY_SUBJECT = "来自 Air780E 的通知",
  48. --
  49. -- gotify 通知配置, https://gotify.net/
  50. GOTIFY_API = "",
  51. GOTIFY_TITLE = "Air780E",
  52. GOTIFY_PRIORITY = 8,
  53. GOTIFY_TOKEN = "",
  54. --
  55. -- 定时查询流量间隔, 单位毫秒, 设置为 0 关闭 (建议检查 util_mobile.lua 文件中运营商号码和查询代码是否正确, 以免发错短信导致扣费, 收到查询结果短信发送通知会消耗流量)
  56. QUERY_TRAFFIC_INTERVAL = 0,
  57. --
  58. -- 定时基站定位间隔, 单位毫秒, 设置为 0 关闭 (定位成功后会追加到通知内容后面, 基站定位本身会消耗流量, 通知内容增加也会导致流量消耗增加)
  59. LOCATION_INTERVAL = 0,
  60. --
  61. -- 开机通知 (会消耗流量)
  62. BOOT_NOTIFY = true,
  63. --
  64. -- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加)
  65. NOTIFY_APPEND_MORE_INFO = true,
  66. --
  67. -- 通知最大重发次数
  68. NOTIFY_RETRY_MAX = 20,
  69. --
  70. -- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
  71. LOW_POWER_MODE = false,
  72. }