Files
aria2bot/.env.example
2025-12-13 12:03:53 +08:00

51 lines
1.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Telegram Bot Token (required)
TELEGRAM_BOT_TOKEN=
# 允许使用 Bot 的用户 ID 列表(逗号分隔,必须配置,否则拒绝所有用户)
# 获取用户 ID向 @userinfobot 发送消息
ALLOWED_USERS=
# Custom Telegram Bot API URL (optional, for self-hosted API)
TELEGRAM_API_BASE_URL=
# Aria2 RPC Port (default: 6800)
ARIA2_RPC_PORT=6800
# Aria2 RPC Secret (optional, auto-generated if empty)
ARIA2_RPC_SECRET=
# ==================== OneDrive 配置 ====================
# 启用 OneDrive 云存储功能
ONEDRIVE_ENABLED=false
# Microsoft Azure 应用凭证(使用公共客户端认证,不需要 client_secret
# 在 Azure Portal 创建应用https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
# 需要添加 API 权限Files.ReadWrite, offline_access
# 注意:应用类型选择"公共客户端/本机",不需要配置客户端密码
ONEDRIVE_CLIENT_ID=
# 租户 ID个人账户使用 common组织账户使用具体租户 ID
ONEDRIVE_TENANT_ID=common
# 下载完成后自动上传到 OneDrive
ONEDRIVE_AUTO_UPLOAD=false
# 上传完成后删除本地文件
ONEDRIVE_DELETE_AFTER_UPLOAD=false
# OneDrive 远程存储路径
ONEDRIVE_REMOTE_PATH=/aria2bot
# ==================== Telegram 频道存储配置 ====================
# 启用 Telegram 频道存储功能
# Bot 必须是频道管理员且有发送消息权限
TELEGRAM_CHANNEL_ENABLED=false
# 频道 ID数字 ID 如 -1001234567890或 @username 格式)
TELEGRAM_CHANNEL_ID=
# 下载完成后自动发送到频道
TELEGRAM_CHANNEL_AUTO_UPLOAD=false
# 发送后删除本地文件
TELEGRAM_CHANNEL_DELETE_AFTER_UPLOAD=false