forked from MDTechLabs/BridgeWise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
86 lines (74 loc) · 2.94 KB
/
.env.example
File metadata and controls
86 lines (74 loc) · 2.94 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
# 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
# ========== Dynamic Chain Configuration ==========
# Override RPC endpoints via environment variables
# Format: CHAIN_<CHAIN_ID>_<PROPERTY>=value
# Examples:
# CHAIN_ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY
# CHAIN_POLYGON_RPC_URL=https://polygon-mainnet.g.alchemy.com/v2/YOUR_KEY
# CHAIN_ARBITRUM_RPC_URL=https://arb-mainnet.g.alchemy.com/v2/YOUR_KEY
# Add new chains dynamically
# CHAIN_AVALANCHE_NAME=Avalanche
# CHAIN_AVALANCHE_SYMBOL=AVAX
# CHAIN_AVALANCHE_CHAIN_ID=43114
# CHAIN_AVALANCHE_RPC_URL=https://api.avax.network/ext/bc/C/rpc
# CHAIN_AVALANCHE_EXPLORER_URL=https://snowtrace.io
# CHAIN_AVALANCHE_TYPE=EVM
# CHAIN_AVALANCHE_SUPPORTS_BRIDGING=true
# CHAIN_AVALANCHE_SUPPORTS_QUOTES=true
# CHAIN_AVALANCHE_NATIVE_DECIMALS=18
# Enable/disable testnets (true to include testnet chains)
# INCLUDE_TESTNETS=false
# ========== 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