-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
52 lines (40 loc) · 2.95 KB
/
Copy path.env.example
File metadata and controls
52 lines (40 loc) · 2.95 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
# ─── 服务基础 ────────────────────────────────────────────────────────────────
PORT=18473
NODE_ENV=production
# 前端地址,OAuth 回调后重定向至此
APP_URL=https://rssany.com
# ─── 认证(必填)────────────────────────────────────────────────────────────
# JWT 签名密钥,至少 32 位随机字符串,例如:openssl rand -base64 32
JWT_SECRET=change-me-to-a-random-32-char-secret
# ─── Google OAuth(可选)────────────────────────────────────────────────────
# 在 https://console.cloud.google.com/apis/credentials 创建 OAuth 2.0 客户端
# 授权回调 URI 填:https://your-domain.com/api/auth/google
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# ─── GitHub OAuth(可选)────────────────────────────────────────────────────
# 在 https://github.com/settings/applications/new 创建 OAuth App
# Authorization callback URL 填:https://your-domain.com/api/auth/github
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# ─── 邮件发送(全部放 env,无需在 config.json 写 email 节)─────────────────────
# SMTP 配置
SMTP_HOST=smtp.example.com
SMTP_PORT=465
SMTP_SECURE=true
SMTP_USER=your@example.com
SMTP_PASS=your-smtp-password
# Resend API Key(driver=resend 时使用;https://resend.com/api-keys)
RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxx
# ─── LLM(解析 / Pipeline 等;也可在管理后台「设置 → LLM」写入 .rssany/config.json)──
OPENAI_API_KEY=sk-...
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
# ─── 用户数据目录(可选)──────────────────────────────────────────────────────
# 默认:用户主目录下的 .rssany/(Windows:%USERPROFILE%\.rssany)
# RSSANY_USER_DIR=/path/to/custom
# ─── 数据库(本地 SQLite)────────────────────────────────────────────────────
# 主库路径:<用户数据>/.rssany/data/rssany.db(启动时自动建表);可选:
# RSSANY_DB_JOURNAL=delete 在 Windows 热重载场景下降低 WAL 损坏风险
# ─── 缓存目录(可选)────────────────────────────────────────────────────────
# 默认:<用户数据>/.rssany/cache;可单独覆盖:
# CACHE_DIR=/path/to/custom/cache