-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (33 loc) · 1.22 KB
/
Copy path.env.example
File metadata and controls
39 lines (33 loc) · 1.22 KB
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
# ============================================
# GitHub Fork & Star 通知机器人 · 环境变量配置
# ============================================
# 使用方法:
# 1. cp .env.example .env
# 2. 编辑 .env 填入真实值
# 3. chmod 600 .env
# 4. 重启服务:systemctl daemon-reload && systemctl restart github-notify-bot
#
# ⚠️ 重要:
# - 纯 KEY=value 格式,不要加 export 前缀
# - 值前后不要加引号(引号会被当成值的一部分)
# - 此文件不要提交到 Git(.gitignore 已排除)
# GitHub Personal Access Token(必须)
# 需要有 repo 通知权限
# 生成地址:https://github.com/settings/tokens
GITHUB_TOKEN=
# Telegram Bot Token(必须)
# 从 @BotFather 创建 bot 后获取
TELEGRAM_BOT_TOKEN=
# 接收通知的 Telegram Chat ID(必须)
# 获取方式:给 bot 发条消息,访问
# https://api.telegram.org/bot<你的token>/getUpdates
# 从 JSON 中找 chat.id
TELEGRAM_CHAT_ID=
# 要监控的 GitHub 用户名(可选,默认 dorokuma)
# 多个用逗号分隔
TARGET_USERS=dorokuma
# 轮询间隔(可选,默认 300 秒,最小 60)
POLL_INTERVAL=300
# 日志级别(可选,默认 INFO)
# DEBUG / INFO / WARNING / ERROR
LOG_LEVEL=INFO