Files
Cloud-Index/.env.example
RhenCloud a02bcc57d7 feat: 完整的 R2 文件管理系统初始化
- 实现 11 个 API 端点:上传、删除、重命名、复制、移动、创建文件夹等
- 构建存储抽象层,支持多后端(R2、S3、GitHub)
- 添加完整的前端界面:列表/网格视图、文件操作、批量管理
- 添加深色/浅色主题支持
- 迁移至 Jinja2 模板继承架构
- 添加完整的 API 文档和项目文档
- 优化 Vercel 部署配置
2025-11-08 17:45:37 +08:00

33 lines
854 B
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
## TODO LIST:
# cnbcool | Tencent cnb.cool
# s3 | Amazon S3
# github-repo | GitHub Repo
STORAGE_TYPE=r2
# ==================== Cloudflare R2 配置 ====================
# R2 访问凭证
ACCESS_KEY_ID=YOUR_R2_ACCESS_KEY_ID
SECRET_ACCESS_KEY=YOUR_R2_SECRET_ACCESS_KEY
# R2 存储桶名称
R2_BUCKET_NAME=drive
# R2 Endpoint URL
R2_ENDPOINT_URL=https://<your-account-id>.r2.cloudflarestorage.com
# R2 区域 (默认: auto)
R2_REGION=auto
# R2 公共访问 URL (可选,例如: https://pub-<bucket-name>.r2.dev)
R2_PUBLIC_URL=https://pub-<bucket-name>.r2.dev
# R2 预签名 URL 过期时间(秒,默认: 3600
R2_PRESIGN_EXPIRES=3600
# ==================== 应用配置 ====================
# 缩略图缓存时间(秒,默认: 3600
THUMB_TTL_SECONDS=3600