config.lua 2.7 KB

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