forked from openRin/Rin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (48 loc) · 1.5 KB
/
Copy path.env.example
File metadata and controls
60 lines (48 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Rin 本地开发配置
# 复制此文件为 .env.local 并填入你的实际配置
# ============================================
# 前端配置 (client/.env)
# ============================================
# 后端 API 地址
API_URL=http://localhost:11498
# 网站基本信息
NAME=YourName
DESCRIPTION=Your Description
AVATAR=https://avatars.githubusercontent.com/u/your-id
# 分页设置
PAGE_SIZE=5
# RSS 设置
RSS_ENABLE=false
# ============================================
# 后端配置 (wrangler.toml 中的 vars)
# ============================================
# 前端地址(用于 Webhook 等)
FRONTEND_URL=http://localhost:5173
# S3/R2 存储配置
S3_FOLDER=images/
S3_CACHE_FOLDER=cache/
S3_REGION=auto
S3_ENDPOINT=https://your-account.r2.cloudflarestorage.com
S3_ACCESS_HOST=https://your-image-domain.com
S3_BUCKET=your-bucket-name
S3_FORCE_PATH_STYLE=false
# Webhook 通知地址(可选)
WEBHOOK_URL=
# RSS 标题和描述
RSS_TITLE=Rin Development
RSS_DESCRIPTION=Development Environment
# ============================================
# 敏感配置(会被加密存储)
# ============================================
# GitHub OAuth 配置
RIN_GITHUB_CLIENT_ID=your-github-client-id
RIN_GITHUB_CLIENT_SECRET=your-github-client-secret
# JWT 密钥
JWT_SECRET=your-jwt-secret-key
# S3 访问密钥
S3_ACCESS_KEY_ID=your-s3-access-key
S3_SECRET_ACCESS_KEY=your-s3-secret-key
# ============================================
# 数据库配置
# ============================================
DB_NAME=rin