Files
aria2bot/.env.example
2025-12-12 15:09:02 +08:00

37 lines
1.1 KiB
Plaintext
Raw 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 应用凭证
# 在 Azure Portal 创建应用https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
# 需要添加 API 权限Files.ReadWrite.All, offline_access
ONEDRIVE_CLIENT_ID=
ONEDRIVE_CLIENT_SECRET=
# 租户 ID个人账户使用 common组织账户使用具体租户 ID
ONEDRIVE_TENANT_ID=common
# 下载完成后自动上传到 OneDrive
ONEDRIVE_AUTO_UPLOAD=false
# 上传完成后删除本地文件
ONEDRIVE_DELETE_AFTER_UPLOAD=false
# OneDrive 远程存储路径
ONEDRIVE_REMOTE_PATH=/aria2bot