-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.env.example
More file actions
29 lines (29 loc) · 1.22 KB
/
.env.example
File metadata and controls
29 lines (29 loc) · 1.22 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
# Database Configuration
DATABASE_URL="postgresql://postgres:password@localhost:5432/tradeflow?schema=public"
# Alternative Database Configuration (for TypeORM)
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=password
DB_DATABASE=tradeflow
# Server Configuration
PORT=3000
NODE_ENV=development
# Soroban Event Indexer & WebSocket Configuration
SOROBAN_RPC_URL="https://soroban-testnet.stellar.org"
POOL_ADDRESS="CC..." # Replace with your Pool Contract ID
INDEXER_POLL_INTERVAL=5000 # Polling interval in ms
WS_PORT=3001 # WebSocket server port
# Redis Configuration (optional - in-memory fallback used when not set)
REDIS_URL="redis://localhost:6379"
# Security Configuration
JWT_SECRET="YOUR_SUPER_SECRET_KEY_CHANGE_ME"
WEBHOOK_SECRET="your_webhook_secret_key_change_me"
ADMIN_API_KEY="your_admin_api_key_change_me"
ADMIN_PASSWORD="admin_secure_password_123"
# CORS Configuration - Comma-separated list of allowed origins
ALLOWED_ORIGINS="http://localhost:3000,https://localhost:3000,https://tradeflow.app"
# Request Timeout Configuration
REQUEST_TIMEOUT_MS=30000 # Timeout in milliseconds (default: 30000)
# Logging Configuration
LOG_LEVEL=debug # Options: error, warn, log, debug, verbose (overridden by NODE_ENV defaults)