config.lua 2.7 KB

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