Files
Cloud-Index/.env.example

47 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.
# 存储类型选择
## Done
# r2 | Cloudflare R2
# github | GitHub Repository
## TODO LIST:
# cnbcool | Tencent cnb.cool
# s3 | Amazon S3
# Microsoft Onedrive
STORAGE_TYPE=r2
# ==================== Cloudflare R2 配置 ====================
# R2 账户 ID
R2_ACCOUNT_ID=your-account-id
# R2 访问凭证
R2_ACCESS_KEY_ID=YOUR_R2_ACCESS_KEY_ID
R2_SECRET_ACCESS_KEY=YOUR_R2_SECRET_ACCESS_KEY
# R2 存储桶名称
R2_BUCKET_NAME=drive
# R2 公共访问域名 (可选,例如: https://pub-<bucket-name>.r2.dev)
R2_PUBLIC_DOMAIN=https://pub-<bucket-name>.r2.dev
# ==================== GitHub 存储配置 ====================
# GitHub 仓库 (格式: owner/repo)
GITHUB_REPO=your-username/your-repo
# GitHub 访问令牌 (需要 repo 权限)
GITHUB_TOKEN=your-access-token
# GitHub 分支名称 (默认: main)
GITHUB_BRANCH=main
# ==================== 应用配置 ====================
# 服务器配置
HOST=0.0.0.0
PORT=5000
DEBUG=false
# 缩略图缓存时间(秒,默认: 3600
THUMB_TTL_SECONDS=3600
# 预签名 URL 过期时间(秒,默认: 3600
PRESIGNED_URL_EXPIRES=3600
THUMB_TTL_SECONDS=3600