forked from mux-labs/mux-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (48 loc) · 2.19 KB
/
Copy path.env.example
File metadata and controls
55 lines (48 loc) · 2.19 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
# ============================================================
# Mux Backend — Required Environment Variables
# Copy this file to .env and fill in your values.
# Never commit .env to version control.
# ============================================================
# ------------------------------------------------------------
# Database
# Required: PostgreSQL connection string (Prisma)
# ------------------------------------------------------------
DATABASE_URL=postgresql://user:password@localhost:5432/mux_db?sslmode=require
# ------------------------------------------------------------
# Application
# Optional: HTTP port (default: 3000)
# ------------------------------------------------------------
PORT=3000
# ------------------------------------------------------------
# Wallet Encryption
# Required: Secret used to derive the AES-256-GCM encryption key
# for Stellar private keys at rest. Use a long random string.
# Generate with: openssl rand -hex 32
# ------------------------------------------------------------
WALLET_ENCRYPTION_KEY=your-secret-encryption-key-min-32-chars
# ------------------------------------------------------------
# Stellar / Horizon
# Required: Horizon RPC endpoint for the target network
# Testnet: https://horizon-testnet.stellar.org
# Mainnet: https://horizon.stellar.org
# ------------------------------------------------------------
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# ------------------------------------------------------------
# Balance Indexer
# Optional: Milliseconds before a cached balance is considered stale
# Default: 300000 (5 minutes)
# ------------------------------------------------------------
BALANCE_STALE_THRESHOLD_MS=300000
# ------------------------------------------------------------
# Webhooks
# Optional: Delivery retry configuration
# ------------------------------------------------------------
WEBHOOK_MAX_RETRIES=5
WEBHOOK_RETRY_BACKOFF_MS=1000
WEBHOOK_TIMEOUT_MS=10000
WEBHOOK_MAX_CONSECUTIVE_FAILURES=10
# Auth Rate Limiting Configuration
# Maximum number of authentication attempts per IP address per window
AUTH_RATE_LIMIT_MAX=10
# Time window in milliseconds for auth rate limiting (default: 60 seconds)
AUTH_RATE_LIMIT_WINDOW_MS=60000