-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
119 lines (103 loc) · 4.16 KB
/
env.example
File metadata and controls
119 lines (103 loc) · 4.16 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
# ===========================================
# ClaimX 项目环境变量配置模板
# ===========================================
# 复制此文件为 .env.local 并填入实际的配置值
# ===========================================
# 基础配置
# ===========================================
BASE_URL=http://localhost:3000
NODE_ENV=development
# ===========================================
# Reown AppKit 配置 (多链钱包)
# ===========================================
# 从 https://dashboard.reown.com 获取项目 ID
NEXT_PUBLIC_PROJECT_ID=your_reown_project_id_here
# ===========================================
# OKX API 配置 (交易所 API)
# ===========================================
OKX_API_URL=https://www.okx.com
OKX_API_KEY=your_okx_api_key
OKX_API_SECRET_KEY=your_okx_secret_key
OKX_API_PASSPHRASE=your_okx_passphrase
OKX_API_PROJECT_ID=your_okx_project_id
# ===========================================
# Bitcoin 钱包配置
# ===========================================
# Bitcoin 私钥 (测试用,生产环境请使用安全的密钥管理)
BITCOIN_PRIVATE_KEY=your_bitcoin_private_key
# Bitcoin 钱包助记词 (测试用)
BITCOIN_WALLET_MNEMONIC=your twelve word mnemonic phrase here for bitcoin wallet
# ===========================================
# Redis 数据库配置 (Upstash)
# ===========================================
# 从 https://upstash.com 获取 Redis 配置
UPSTASH_REDIS_REST_URL=https://your-redis-url.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_token
# ===========================================
# 第三方 API 服务
# ===========================================
# CryptoCompare API (加密货币价格数据)
# 从 https://cryptocompare.com 获取 API 密钥
CRYPTO_COMPARE_API_KEY=your_cryptocompare_api_key
# hCaptcha 验证码服务
# 从 https://hcaptcha.com 获取站点密钥
HCAPTCHA_SITE_KEY=your_hcaptcha_site_key
# Elasticsearch API (搜索服务)
ELASTICSEARCH_API_KEY=your_elasticsearch_api_key
# ===========================================
# Bitcoin API 服务 (Unisat)
# ===========================================
# 从 https://developer.unisat.io 获取 API 密钥
# Bitcoin 主网 API
UNISAT_BITCOIN_API_KEY=your_unisat_mainnet_api_key
# Bitcoin 测试网 API
UNISAT_BITCOIN_TEST_API_KEY=your_unisat_testnet_api_key
# Bitcoin Test4 网络 API
UNISAT_BITCOIN_TEST4_API_KEY=your_unisat_test4_api_key
# Fractal Bitcoin API
UNISAT_FRACTAL_API_KEY=your_unisat_fractal_api_key
UNISAT_FRACTAL_TEST_API_KEY=your_unisat_fractal_test_api_key
# ===========================================
# IPFS 存储服务 (Pinata)
# ===========================================
# 从 https://pinata.cloud 获取 API 配置
PINATA_API_KEY=your_pinata_api_key
PINATA_API_SECRET=your_pinata_api_secret
PINATA_API_JWT=your_pinata_jwt_token
PINATA_GATEWAYS=your_pinata_gateway_urls
# ===========================================
# 数据库配置 (如果使用)
# ===========================================
# PostgreSQL 数据库 URL (Vercel Postgres 或其他)
# POSTGRES_URL=postgresql://username:password@host:port/database
# ===========================================
# 开发环境配置
# ===========================================
# 是否启用调试模式
DEBUG=false
# 日志级别
LOG_LEVEL=info
# ===========================================
# 安全配置
# ===========================================
# JWT 密钥 (如果使用身份验证)
# JWT_SECRET=your_super_secret_jwt_key_here
# 加密密钥
# ENCRYPTION_KEY=your_encryption_key_here
# ===========================================
# 配置说明
# ===========================================
# 1. 复制此文件为 .env.local
# 2. 填入实际的 API 密钥和配置值
# 3. 不要将 .env.local 文件提交到版本控制系统
# 4. 生产环境请使用环境变量或安全的密钥管理服务
# 5. 所有敏感信息都应该妥善保管
# ===========================================
# 获取 API 密钥的链接
# ===========================================
# Reown Dashboard: https://dashboard.reown.com
# Upstash Redis: https://upstash.com
# CryptoCompare: https://cryptocompare.com/api-keys
# hCaptcha: https://hcaptcha.com
# Unisat Developer: https://developer.unisat.io
# Pinata Cloud: https://pinata.cloud