forked from StellarRouter/StellarRouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (41 loc) · 1.98 KB
/
Copy path.env.example
File metadata and controls
52 lines (41 loc) · 1.98 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
# Soroban RPC endpoint URL
ROUTER_RPC_URL=https://soroban-testnet.stellar.org
# Stellar network passphrase
# Testnet: "Test SDF Network ; September 2015"
# Mainnet: "Public Global Stellar Network ; September 2015"
ROUTER_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# Contract IDs (leave empty to skip scraping that contract)
ROUTER_CORE_CONTRACT_ID=
ROUTER_MIDDLEWARE_CONTRACT_ID=
ROUTER_REGISTRY_CONTRACT_ID=
# Scrape interval in seconds (how often to poll the RPC in poll mode)
ROUTER_SCRAPE_INTERVAL_SECS=15
# HTTP server listen address
ROUTER_LISTEN=0.0.0.0:9090
# RPC request timeout in seconds
ROUTER_RPC_TIMEOUT_SECS=10
# ── SSE / event-mode configuration ───────────────────────────────────────────
# Event ingestion mode: "poll" (default) or "sse"
#
# poll — scrape the Soroban RPC every ROUTER_SCRAPE_INTERVAL_SECS seconds
# (original behaviour, always available).
#
# sse — subscribe to the Stellar Horizon SSE event stream for near-real-time
# metric updates. A bootstrap poll is still performed on startup.
# Falls back to sse_connected=0 and reconnects automatically.
ROUTER_EVENT_MODE=poll
# Stellar Horizon base URL (used for SSE subscriptions in sse mode).
# Testnet: https://horizon-testnet.stellar.org
# Mainnet: https://horizon.stellar.org
ROUTER_HORIZON_URL=https://horizon-testnet.stellar.org
# Maximum SSE reconnect attempts (0 = unlimited).
# After this many failed reconnects the subscriber gives up and sse_connected
# gauge stays at 0. Only used when ROUTER_EVENT_MODE=sse.
ROUTER_SSE_MAX_RECONNECTS=10
# Base reconnect delay in milliseconds for SSE back-off.
# The actual delay is base * 2^attempt, capped at ROUTER_SSE_RECONNECT_MAX_DELAY_MS.
# Only used when ROUTER_EVENT_MODE=sse.
ROUTER_SSE_RECONNECT_DELAY_MS=1000
# Maximum reconnect delay in milliseconds for SSE back-off ceiling.
# Only used when ROUTER_EVENT_MODE=sse.
ROUTER_SSE_RECONNECT_MAX_DELAY_MS=30000