-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
85 lines (68 loc) · 2.79 KB
/
Copy path.env.example
File metadata and controls
85 lines (68 loc) · 2.79 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
# ============================================
# Required for core functionality
# ============================================
# App URL (required for OAuth callbacks)
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NODE_ENV="development"
AUTH_SECRET="your-secret-key-here-generate-with-openssl-rand-hex-32"
# ============================================
# Database (optional - auth features disabled if not set)
# ============================================
DATABASE_URL="postgresql://user:password@localhost:5432/dbname?schema=public"
# ============================================
# OAuth Providers (optional - buttons hidden if not set)
# ============================================
# GitHub OAuth
# GITHUB_CLIENT_ID=""
# GITHUB_CLIENT_SECRET=""
# Google OAuth
# GOOGLE_CLIENT_ID=""
# GOOGLE_CLIENT_SECRET=""
# ============================================
# Email Service (optional - password reset disabled if not set)
# ============================================
# 邮件发送方式:smtp 或 api(默认 smtp)
EMAIL_PROVIDER="api"
# 方式一:使用 push.h7ml.cn API(推荐)
EMAIL_API_URL="https://push.h7ml.cn/forward"
EMAIL_API_HOST="smtp.qq.com"
EMAIL_API_PORT="587"
EMAIL_API_USER="your-email@qq.com"
EMAIL_API_PASS="your-smtp-auth-code"
# EMAIL_API_FROM(可选):默认发件人地址,不填则使用 EMAIL_API_USER
# EMAIL_API_FROM="noreply@example.com"
# 方式二:传统 SMTP(备用)
# SMTP_HOST=""
# SMTP_PORT="587"
# SMTP_USER=""
# SMTP_PASS=""
# SMTP_FROM="" # 可选:默认发件人地址,不填则使用 SMTP_USER
# ============================================
# File Upload (optional)
# ============================================
# BLOB_READ_WRITE_TOKEN=""
# ============================================
# Redis Cache (optional - required for verification codes)
# ============================================
# 方式一:使用 Upstash Redis(推荐)
# 注册:https://upstash.com/
REDIS_URL="redis://default:password@your-redis.upstash.io:6379"
# 方式二:使用本地 Redis
# REDIS_URL="redis://localhost:6379"
# 方式三:兼容 KV REST API(已弃用,建议使用 REDIS_URL)
# KV_REST_API_URL=""
# KV_REST_API_TOKEN=""
# ============================================
# Cloudflare Turnstile (optional - human verification)
# ============================================
# 如果不配置,则不启用人机验证
# NEXT_PUBLIC_TURNSTILE_SITE_KEY="0x4AAAAAACOeLh2CoI1m3v1U"
# TURNSTILE_SECRET_KEY="0x4AAAAAACOeLqJjjeFGHVg12m8HiVpk0Zg"
# ============================================
# Analytics (optional)
# ============================================
# NEXT_PUBLIC_ANALYTICS_ID=""
# ============================================
# Build Information (optional - auto-generated during build)
# ============================================
# NEXT_PUBLIC_BUILD_TIME=""