-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.env.example
More file actions
64 lines (55 loc) · 2.11 KB
/
.env.example
File metadata and controls
64 lines (55 loc) · 2.11 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
# BridgeWise Environment Configuration Template
# ==============================================
# Copy this file to .env and fill in your values
# For environment-specific configs, use:
# - .env.development (development overrides)
# - .env.staging (staging overrides)
# - .env.production (production overrides)
# ========== Application Environment ==========
NODE_ENV=development
# ========== Server Configuration ==========
PORT=3000
HOST=0.0.0.0
# ========== Database Configuration ==========
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=your_password_here
DB_NAME=bridgewise_dev
DB_SSL=false
# ========== API Configuration ==========
API_KEY=your_api_key_here
API_SECRET=your_api_secret_here
API_BASE_URL=https://api.bridgewise.com
API_TIMEOUT=30000
# ========== Security - Vault Configuration ==========
# Generate a 32-byte encryption key: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# IMPORTANT: Store the generated key securely, never commit to version control
VAULT_ENCRYPTION_KEY=generate-with-crypto-and-store-securely
# ========== Security - HTTPS and CORS ==========
# FORCE_HTTPS: Set to true in production/staging
FORCE_HTTPS=false
# CORS_ORIGIN: Comma-separated list of allowed origins
# IMPORTANT: Never use * in production, always specify exact domains
CORS_ORIGIN=http://localhost:3000
CORS_CREDENTIALS=false
# ========== RPC URLs ==========
# Blockchain RPC endpoints - replace with your own or use existing ones
RPC_ETHEREUM=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID
RPC_POLYGON=https://polygon-rpc.com
RPC_BSC=https://bsc-dataseed.binance.org
RPC_ARBITRUM=https://arb1.arbitrum.io/rpc
RPC_OPTIMISM=https://mainnet.optimism.io
# ========== Logging Configuration ==========
LOG_LEVEL=debug
LOG_FORMAT=simple
# ========== Feature Flags ==========
# Toggle features without redeploying — set to true/false and restart the process.
# Flags default to true unless documented otherwise.
ENABLE_ANALYTICS=true
ENABLE_BENCHMARKING=false
ENABLE_BRIDGE_COMPARE=true
ENABLE_GAS_ESTIMATION=true
ENABLE_REAL_TIME_FEES=true
ENABLE_BRIDGE_DISCOVERY=true
ENABLE_RELIABILITY_SCORE=true