-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy path.env.example
More file actions
70 lines (58 loc) · 2.18 KB
/
Copy path.env.example
File metadata and controls
70 lines (58 loc) · 2.18 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
# Server
PORT=3000
NODE_ENV=development
# CORS — comma-separated origins; defaults to * in development
ALLOWED_ORIGINS=
CORS_MAX_AGE=600
# Stellar / Soroban
STELLAR_NETWORK=testnet
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# Comma-separated fallback RPC endpoints (optional)
STELLAR_RPC_FALLBACKS=
# RPC call timeout in milliseconds (default: 10000, min: 1000)
STELLAR_RPC_TIMEOUT_MS=10000
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
STELLAR_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
# Contract addresses (fill in after deployment)
VAULT_FACTORY_CONTRACT_ID=
ZKME_VERIFIER_CONTRACT_ID=
# Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/stellaryield
DB_HOST=localhost
DB_PORT=5432
DB_NAME=stellaryield
DB_USER=postgres
DB_PASSWORD=postgres
DB_POOL_MIN=2
DB_POOL_MAX=10
DB_IDLE_TIMEOUT_MS=10000
DB_QUERY_TIMEOUT_MS=30000
# Queries slower than this many milliseconds are logged at warn level
DB_SLOW_QUERY_MS=500
# Indexer
INDEXER_START_LEDGER=0
INDEXER_POLL_INTERVAL_MS=5000
# Indexer lag alert threshold — error log emitted when indexer falls behind by more than this many ledgers
INDEXER_LAG_ALERT_LEDGERS=100
# Admin API — comma-separated CIDRs or IPs (optional)
# When set, only requests from these IPs can access /api/v1/admin/*
ADMIN_IP_ALLOWLIST=
ADMIN_API_KEY=your-admin-api-key-here
# Maximum size of an incoming JSON request body (e.g. "100kb", "1mb")
REQUEST_BODY_LIMIT=100kb
# Shared secret for HMAC-signed requests between internal services (/internal/* routes)
INTERNAL_SECRET=
# DB pool exhaustion alerting (#828)
# Log an error when more than this many connection requests are queued waiting for a pool slot.
# Default: 5. Set to 0 to disable.
DB_POOL_ALERT_WAITING=5
# RPC error rate alerting (#829)
# Log an error when the RPC error rate in a 5-minute window exceeds this percentage.
# Default: 10 (i.e. 10%). Range: 1–100.
RPC_ERROR_RATE_ALERT_PCT=10
# Redis connection used for caching and SSE replay-buffer durability (optional;
# caching/replay degrade gracefully to in-memory-only when unset)
REDIS_URL=
# Number of past vault SSE events buffered per vault for Last-Event-ID replay
# on reconnect (#761). Default: 100.
SSE_REPLAY_BUFFER=100