-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
70 lines (61 loc) · 3.27 KB
/
Copy path.env.example
File metadata and controls
70 lines (61 loc) · 3.27 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
61
62
63
64
65
66
67
68
69
70
# ============================================================
# 环境变量配置示例
# 复制此文件为 .env.local 并填入你自己的值
# .env.local 已在 .gitignore 中,不会提交到仓库
# ============================================================
# ------------------------------------------------------------
# GitHub 仓库配置(必填)
# 图床目标仓库,用于存储壁纸原图、元数据和前端 JSON
# 如不填写,需在应用「设置」页面手动输入
# ------------------------------------------------------------
VITE_GITHUB_REPO_OWNER=your_github_username_or_org
VITE_GITHUB_REPO_NAME=your_image_repo_name
VITE_GITHUB_REPO_BRANCH=main
# ------------------------------------------------------------
# GitHub OAuth 配置(推荐,用于一键登录)
# 创建方式:https://github.com/settings/developers → New OAuth App
# - Homepage URL: http://localhost:5173
# - Callback URL: http://localhost:5173/callback
# OAuth Worker 部署方式见 worker/README.md
# 如不配置 OAuth,可使用 Personal Access Token 登录(登录页有入口)
# ------------------------------------------------------------
VITE_GITHUB_CLIENT_ID=your_github_oauth_client_id
VITE_OAUTH_WORKER_URL=https://your-oauth-worker.your-subdomain.workers.dev
# ------------------------------------------------------------
# 工作流仓库配置(可选)
# 不配置时会回退到项目内置默认仓库
# ------------------------------------------------------------
VITE_WORKFLOW_OWNER=your_workflow_owner
VITE_WORKFLOW_REPO=your_workflow_repo
VITE_FRONTEND_OWNER=your_frontend_owner
VITE_FRONTEND_REPO=your_frontend_repo
# ------------------------------------------------------------
# Cloudflare Workers AI(可选)
# 获取地址:https://dash.cloudflare.com → Workers & Pages
# ------------------------------------------------------------
VITE_CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_id
VITE_CLOUDFLARE_API_TOKEN=your_cloudflare_api_token
# Cloudflare AI Worker 代理 URL(用于解决 CORS 问题)
# 部署方式见 worker/README.md
VITE_WORKER_URL=https://your-worker.your-subdomain.workers.dev
# ------------------------------------------------------------
# ModelScope 魔搭社区(推荐,免费)
# 获取地址:https://modelscope.cn → 个人中心 → API Token
# ------------------------------------------------------------
VITE_MODELSCOPE_API_KEY=your_modelscope_api_key
# ------------------------------------------------------------
# Groq AI(推荐,速度极快,免费额度充足)
# 获取地址:https://console.groq.com/keys
# ------------------------------------------------------------
VITE_GROQ_API_KEY=your_groq_api_key
# ------------------------------------------------------------
# NVIDIA NIM(可选,视觉模型丰富)
# 获取地址:https://build.nvidia.com → Get API Key
# ------------------------------------------------------------
VITE_NVIDIA_API_KEY=your_nvidia_api_key
# ------------------------------------------------------------
# Cloudflare AI Gateway(可选,用于代理 Groq API 避免 CORS)
# 获取地址:https://dash.cloudflare.com → AI → AI Gateway
# ------------------------------------------------------------
VITE_AI_GATEWAY_ACCOUNT_ID=your_cloudflare_account_id
VITE_AI_GATEWAY_ID=your_gateway_id