-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy path.dev.vars.example
More file actions
40 lines (32 loc) · 1.49 KB
/
.dev.vars.example
File metadata and controls
40 lines (32 loc) · 1.49 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
# ===========================================
# 服务端环境变量(Wrangler 注入 Worker env)
# ===========================================
# --- 环境标识 ---
ENVIRONMENT=dev
# --- 认证配置(Better Auth) ---
BETTER_AUTH_SECRET=your-secret-key-run-openssl-rand-hex-32
BETTER_AUTH_URL=http://localhost:3000
ADMIN_EMAIL=your-email@example.com
# --- GitHub OAuth ---
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
# --- CDN 缓存清理 ---
CLOUDFLARE_ZONE_ID=your-zone-id
CLOUDFLARE_PURGE_API_TOKEN=your-purge-api-token
DOMAIN=blog.example.com
# 可选:若使用独立 CDN 域名,设置后 purge 时优先使用此域名
# CDN_DOMAIN=cdn.example.com
# --- Umami 客户端统计(可选,仅用于前端埋点脚本代理) ---
# VITE_UMAMI_WEBSITE_ID=your-umami-website-id
# UMAMI_SRC=https://cloud.umami.is
# --- 浏览量统计 ---
# 用于生成匿名访客标识的固定 salt(SHA-256(IP + UA + salt)),任意非空字符串
# 生成建议:openssl rand -hex 16
PAGEVIEW_SALT=your-random-salt-string
# --- Turnstile 人机验证 ---
# 测试key见:https://developers.cloudflare.com/turnstile/troubleshooting/testing/
# TURNSTILE_SECRET_KEY=your-turnstile-secret-key
# --- GitHub API(可选,用于版本更新检查) ---
# 未认证请求限流 60 次/小时/IP,Cloudflare Workers 共享 IP 容易触发限流
# 创建无权限的 Fine-grained token: https://github.com/settings/personal-access-tokens
# GITHUB_TOKEN=your-github-token