forked from openlaunch-org/Open-Launch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example.txt
More file actions
243 lines (214 loc) · 8.5 KB
/
env.example.txt
File metadata and controls
243 lines (214 loc) · 8.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# ==========================================
# Open Launch 环境变量配置示例
# ==========================================
# 重命名此文件为 .env 或 .env.local 并填入实际值
#
# 📖 完整配置指南: docs/cursor/ENV_SETUP_GUIDE.md
# 🛠️ 管理员设置: docs/cursor/ADMIN_SETUP_GUIDE.md
# 🚀 部署指南: docs/cursor/ZEABUR_DEPLOYMENT_GUIDE.md
# 📚 所有文档索引: docs/cursor/CONFIGURATION_INDEX.md
# 📂 文档目录: docs/cursor/README.md
# ==========================================
# 应用基础配置
# ==========================================
NODE_ENV=development
NEXT_PUBLIC_URL=http://localhost:3000
# ==========================================
# Better Auth 配置
# ==========================================
# 使用以下命令生成安全的密钥:
# openssl rand -base64 32
BETTER_AUTH_SECRET=your_random_secret_key_here
# Better Auth 基础 URL (用于生成正确的回调链接)
# 本地开发: http://localhost:3000
# 生产环境: https://yourdomain.com
BETTER_AUTH_URL=http://localhost:3000
# ==========================================
# 数据库配置 (PostgreSQL)
# ==========================================
DATABASE_URL=postgresql://user:password@localhost:5432/open_launch
# ==========================================
# Redis 配置 (用于速率限制和缓存)
# ==========================================
REDIS_URL=redis://localhost:6379
# ==========================================
# Stripe 支付配置
# ==========================================
# 详细配置请查看 STRIPE_SETUP_GUIDE.md
# API 密钥 (从 Stripe Dashboard > Developers > API keys 获取)
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
# Webhook 签名密钥 (从 Stripe CLI 或 Dashboard > Webhooks 获取)
# Webhook 端点路径: /api/auth/stripe/webhook
#
# 本地开发:
# 1. 运行: stripe listen --forward-to localhost:3000/api/auth/stripe/webhook
# 2. 复制终端显示的 whsec_xxx 密钥
#
# 生产环境:
# 1. 访问: https://dashboard.stripe.com/webhooks
# 2. 添加端点: https://yourdomain.com/api/auth/stripe/webhook
# 3. 选择事件: checkout.session.completed, checkout.session.expired
# 4. 复制 Signing secret
#
# 详细配置请查看: STRIPE_WEBHOOK_CONFIG.md
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# ==========================================
# Cloudflare R2 文件存储配置
# ==========================================
# R2 账户 ID (在 R2 概览页面可找到)
R2_ACCOUNT_ID=your_account_id
# R2 访问密钥 (从 API 令牌页面创建)
R2_ACCESS_KEY_ID=your_access_key_id
R2_SECRET_ACCESS_KEY=your_secret_access_key
# R2 存储桶名称
R2_BUCKET_NAME=your_bucket_name
# R2 公共域名 (配置自定义域名或使用 R2.dev 子域)
# 例如: https://files.yourdomain.com 或 https://pub-xxxxx.r2.dev
R2_PUBLIC_DOMAIN=https://your-public-domain.com
# ==========================================
# 邮件服务配置 (Resend)
# ==========================================
# 详细配置请查看: SERVICES_SETUP_GUIDE.md
#
# 获取步骤:
# 1. 访问 https://resend.com/ 并注册
# 2. 添加并验证域名 (生产环境必需)
# 3. 在 DNS 中添加 Resend 提供的记录
# 4. 创建 API 密钥
#
# 用途: 发送验证邮件、密码重置邮件等
# 免费额度: 3,000 封/月
RESEND_API_KEY=re_your_resend_api_key
RESEND_FROM_EMAIL=noreply@yourdomain.com
# ==========================================
# OAuth 提供商配置
# ==========================================
# 详细配置请查看: OAUTH_SETUP_GUIDE.md
# Google OAuth
# 获取步骤:
# 1. 访问 https://console.cloud.google.com/
# 2. 创建项目 > API 和服务 > 凭据
# 3. 创建 OAuth 客户端 ID (Web 应用)
# 4. 重定向 URI: http://localhost:3000/api/auth/callback/google (开发)
# https://yourdomain.com/api/auth/callback/google (生产)
GOOGLE_CLIENT_ID=your_google_client_id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-your_google_client_secret
# GitHub OAuth
# 获取步骤:
# 1. 访问 https://github.com/settings/developers
# 2. OAuth Apps > New OAuth App
# 3. 回调 URL: http://localhost:3000/api/auth/callback/github (开发)
# https://yourdomain.com/api/auth/callback/github (生产)
# 建议: 为开发和生产环境创建两个独立的 OAuth App
GITHUB_CLIENT_ID=Iv1.your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
# Google One Tap (可选 - 使用相同的 Google Client ID)
NEXT_PUBLIC_ONE_TAP_CLIENT_ID=your_google_client_id.apps.googleusercontent.com
# ==========================================
# Cloudflare Turnstile (Bot 防护)
# ==========================================
# 详细配置请查看: SERVICES_SETUP_GUIDE.md
#
# 获取步骤:
# 1. 访问 https://dash.cloudflare.com/
# 2. 进入 Turnstile > Add site
# 3. 配置站点名称和域名
# 4. 复制 Site Key 和 Secret Key
#
# 用途: 防止机器人注册/登录/评论
NEXT_PUBLIC_TURNSTILE_SITE_KEY=0x4AAAAAAAAAAAA
TURNSTILE_SECRET_KEY=0x4AAAAAAAAAAAA
# ==========================================
# Discord Webhook (可选 - 用于通知)
# ==========================================
# 详细配置请查看: SERVICES_SETUP_GUIDE.md
#
# 获取步骤:
# 1. 在 Discord 服务器创建频道
# 2. 右键频道 > 编辑频道 > 集成 > Webhooks
# 3. 创建 Webhook 并复制 URL
#
# DISCORD_WEBHOOK_URL: 用于评论通知
# DISCORD_LAUNCH_WEBHOOK_URL: 用于项目发布通知
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxxxx/xxxxx
DISCORD_LAUNCH_WEBHOOK_URL=https://discord.com/api/webhooks/xxxxx/xxxxx
# ==========================================
# Cron 定时任务配置
# ==========================================
# 详细配置请查看: docs/cursor/CRON_SETUP_GUIDE.md
#
# 用于保护 Cron API 端点的密钥
# 生成方式: openssl rand -base64 32
#
# 用途: 验证外部定时调度服务的请求
# 必需: 如果使用定时任务功能
CRON_SECRET=your_super_secret_cron_key_here_minimum_32_characters
# ==========================================
# 分析配置 (Google Analytics)
# ==========================================
# Google Analytics 4 - 网站流量分析工具
#
# 获取步骤:
# 1. 访问 https://analytics.google.com/
# 2. 创建账号 > 创建媒体资源 (Property)
# 3. 选择 "网站" (Web)
# 4. 获取测量 ID (格式: G-XXXXXXXXXX)
#
# 用途: 网站流量分析、用户行为追踪
# 免费: 完全免费
# 可选: 仅在生产环境启用
# Google Analytics 测量 ID
# 格式: G-XXXXXXXXXX
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-RR1YB886D7
# ==========================================
# Stripe Payment Links (支付链接)
# ==========================================
# 从 Stripe Dashboard > Payment Links 创建并获取
# Premium Launch 支付链接 ($2.99/次 - 加速发布)
NEXT_PUBLIC_PREMIUM_PAYMENT_LINK=https://buy.stripe.com/your_premium_launch_link
# SEO Growth Package 支付链接 ($50 - SEO 文章套餐)
NEXT_PUBLIC_PREMIUM_PLUS_PAYMENT_LINK=https://buy.stripe.com/your_seo_package_link
# ==========================================
# ProductHunt 自动导入配置
# ==========================================
# 详细配置请查看: PRODUCTHUNT_AUTO_IMPORT.md
#
# ProductHunt Developer Token (永久有效)
# 获取步骤:
# 1. 访问 https://www.producthunt.com/v2/oauth/applications
# 2. 创建 OAuth Application (Create an application)
# 3. 填写信息:
# - Name: aat.ee Auto Import
# - Redirect URI: https://aat.ee
# 4. 创建后复制显示的 Developer Token
#
# Token 特点:
# - 永久有效,不会过期
# - 只读权限,适合自动化脚本
# - 无需用户授权
#
# 用途: 每日自动获取 ProductHunt Top 5 产品并导入
# 可选: 如果不需要自动导入功能可以不配置
#
# ⚠️ 重要: ProductHunt API 默认不得用于商业用途
# 如需商业使用,请联系: api@producthunt.com
PRODUCTHUNT_API_KEY=your_producthunt_developer_token_here
# ==========================================
# DeepSeek AI API 配置 (用于生成评论)
# ==========================================
# 详细配置请查看: VIRTUAL_ENGAGEMENT.md
#
# DeepSeek API Key
# 获取步骤:
# 1. 访问 https://platform.deepseek.com/
# 2. 注册账号并登录
# 3. 在 API Keys 页面创建新的 API Key
# 4. 复制 API Key (格式: sk-...)
#
# 用途: 为虚拟机器人用户生成真实的评论内容
# 必需: 如果需要虚拟评论功能
DEEPSEEK_API_KEY=sk-your_deepseek_api_key_here
# DeepSeek 模型 (可选,默认为 deepseek-chat)
# 可用模型: deepseek-chat, deepseek-coder
DEEPSEEK_MODEL=deepseek-chat