Files
Cloud-Index/.env.example

51 lines
1.4 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
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
# ==================== GitHub 存储配置 ====================
# GitHub 仓库所有者
GITHUB_REPO_OWNER=your-username
# GitHub 仓库名称
GITHUB_REPO_NAME=your-repo
# GitHub 访问令牌 (需要 repo 权限)
GITHUB_ACCESS_TOKEN=your-access-token
# GitHub 分支名称 (默认: main)
GITHUB_BRANCH=main
# GitHub Raw 文件反向代理 URL (可选,用于加速访问)
# 例如: https://raw.fastgit.org 或 https://ghproxy.com/https://raw.githubusercontent.com
# 留空则使用官方 raw.githubusercontent.com
GITHUB_RAW_PROXY_URL=
# ==================== 应用配置 ====================
# 缩略图缓存时间(秒,默认: 3600
THUMB_TTL_SECONDS=3600