-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
42 lines (31 loc) · 1.41 KB
/
.env.example
File metadata and controls
42 lines (31 loc) · 1.41 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
# 数据库配置
# 数据库提供商:sqlite | postgresql | mysql
DATABASE_PROVIDER="sqlite"
# 本地开发使用 SQLite
DATABASE_URL="file:./dev.db"
# Serverless 部署必须使用外部数据库(SQLite 不支持)
# PostgreSQL 配置示例
# DATABASE_PROVIDER="postgresql"
# DATABASE_URL="postgresql://username:password@host:5432/database"
# MySQL 配置示例
# DATABASE_PROVIDER="mysql"
# DATABASE_URL="mysql://username:password@host:3306/database"
# Supabase (PostgreSQL) 配置示例
# DATABASE_PROVIDER="postgresql"
# DATABASE_URL="postgresql://postgres:[password]@db.[project-ref].supabase.co:5432/postgres"
# PlanetScale (MySQL) 配置示例
# DATABASE_PROVIDER="mysql"
# DATABASE_URL="mysql://[username]:[password]@[host]/[database]?sslaccept=strict"
# Neon (PostgreSQL) 配置示例
# DATABASE_PROVIDER="postgresql"
# DATABASE_URL="postgresql://[user]:[password]@[neon_hostname]/[dbname]?sslmode=require"
# 应用配置
NEXT_PUBLIC_BASE_URL="http://localhost"
# 强制使用 HTTPS(可选,用于反向代理或负载均衡器后的场景)
# 设置为 "true" 时,所有生成的短链接都将使用 HTTPS 协议
# NEXT_PUBLIC_FORCE_HTTPS="true"
# 密码加密密钥(生产环境请使用强密钥)
ENCRYPTION_KEY="your-secret-encryption-key-here"
# Cloudflare Turnstile 人机验证配置
NEXT_PUBLIC_TURNSTILE_SITE_KEY="3x00000000000000000000FF"
TURNSTILE_SECRET_KEY="1x0000000000000000000000000000000AA"