mirror of
https://github.com/RhenCloud/Cloud-Index.git
synced 2025-12-06 15:26:10 +08:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# 存储类型选择
|
||
## 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
|