config.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. -- smtp 通知配置
  50. SMTP_HOST = "smtp.qq.com",
  51. SMTP_PORT = 25,
  52. SMTP_USERNAME = "",
  53. SMTP_PASSWORD = "",
  54. SMTP_MAIL_FROM = "",
  55. SMTP_MAIL_TO = "",
  56. SMTP_MAIL_SUBJECT = "来自 Air780E 的通知",
  57. SMTP_TLS_ENABLE = false,
  58. --
  59. -- gotify 通知配置, https://gotify.net/
  60. GOTIFY_API = "",
  61. GOTIFY_TITLE = "Air780E",
  62. GOTIFY_PRIORITY = 8,
  63. GOTIFY_TOKEN = "",
  64. --
  65. -- 定时查询流量间隔, 单位毫秒, 设置为 0 关闭 (建议检查 util_mobile.lua 文件中运营商号码和查询代码是否正确, 以免发错短信导致扣费, 收到查询结果短信发送通知会消耗流量)
  66. QUERY_TRAFFIC_INTERVAL = 0,
  67. --
  68. -- 定时基站定位间隔, 单位毫秒, 设置为 0 关闭 (定位成功后会追加到通知内容后面, 基站定位本身会消耗流量, 通知内容增加也会导致流量消耗增加)
  69. LOCATION_INTERVAL = 0,
  70. --
  71. -- 开机通知 (会消耗流量)
  72. BOOT_NOTIFY = true,
  73. --
  74. -- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加)
  75. NOTIFY_APPEND_MORE_INFO = true,
  76. --
  77. -- 通知最大重发次数
  78. NOTIFY_RETRY_MAX = 20,
  79. --
  80. -- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
  81. LOW_POWER_MODE = false,
  82. }