Self-hosting & operations

Configuration

Every environment variable: mode, site URL, secrets, data directory, chain, contract addresses and indexer tuning.

Last updated 2 min readv1.0

Configuration is environment variables only. Copy .env.example to .env (or .env.local in development) and adjust.

#Core

VariableDefaultDescription
MODElive (set explicitly)Production value: live. The server serves live data only when every core contract address is set, the RPC answers chain id 99901 and the contracts have code at those addresses. Otherwise it logs mode.live_refused and /api/health reports requestedMode and modeReason.
SITE_URLhttp://localhost:3030Public origin. Used for secure cookies and canonical URLs. Must be the https:// origin in production.
SESSION_SECRETrandom per processHMAC key for session cookies, at least 32 characters. If unset, a random secret is generated at start-up and every session is lost on restart.
DATA_DIR./dataDirectory for the file-backed JSON store. Must be writable and persistent. Use a separate directory for test servers.
TRUST_PROXYtrueTrust the first X-Forwarded-For hop for client IPs (rate limits). Set false if the server is exposed directly without a proxy.

#Chain and contracts

VariableDefaultDescription
RPC_URLhttps://rpc.elysium.kinetiq.xyzElysium JSON-RPC endpoint used by the indexer
CHAIN_ID99901Expected chain id. Must be 99901 in live mode
DAWN_SCHEDULER_ADDRESSzero address (must be set)DawnScheduler. Required, must be distinct from the other core addresses
FORGE_FACTORY_ADDRESSzero address (must be set)ForgeFactory. Required
PULSE_VAULT_ADDRESSzero address (must be set)PulseVault. Required
ORBIT_INDEX_ADDRESSzero address (must be set)OrbitIndex. Required
DYNAMIC_FEE_AMM_IMPL_ADDRESSzero address (must be set)DynamicFeeAMM template implementation (cloned per strategy). Required
BINARY_MARKET_IMPL_ADDRESSzero addressBinaryMarket template implementation (cloned per strategy)
QUOTE_TOKEN_ADDRESSzero address (must be set)The USDC quote token the strategy pools trade against. Required
TREASURY_ADDRESSzero addressProtocol treasury address
GENESIS_UNIXunsetExpected genesis time of the first dawn (unix seconds), cross-checked against DawnScheduler.config().genesis
DEPLOYMENT_BLOCKfirst Deploy.s.sol broadcast receiptFirst block the indexer reads
Production values are in deployments/elysium-99901.json. Server start-up refuses live mode if a required address is the zero address, if the core addresses are not distinct, or if CHAIN_ID is not 99901.
Production contract addresses (deployments/elysium-99901.json, 2026-12-01)Shell
MODE=live
CHAIN_ID=99901
GENESIS_UNIX=1796299200                 # 2026-12-03 12:00 UTC, first dawn
DAWN_SCHEDULER_ADDRESS=0xA42B0c31ac8338eA6b45bb4D0e784570aFb3EDc7
FORGE_FACTORY_ADDRESS=0x7b12278fc0843111Ca1D86E0a98cD150Bc76C5F5
PULSE_VAULT_ADDRESS=0xDb38260B9B8B606B4a99aADdb81e8328C4AE0454
ORBIT_INDEX_ADDRESS=0x0904E97f6741e90D7A0815064a4F6b1855f04Dfb
DYNAMIC_FEE_AMM_IMPL_ADDRESS=0xeBd14Dd8b5a550AAf3987B710c7aacf8d62E97F3
BINARY_MARKET_IMPL_ADDRESS=0x7EF5e6d5cb30674F96E04aeAF7Ea934924a7c44c
QUOTE_TOKEN_ADDRESS=0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
TREASURY_ADDRESS=0x240ACF16b5401E2EDb543B798aCA6BC3041b948d

#Advanced

VariableDefaultDescription
HYPERLIQUID_APIhttps://api.hyperliquid.xyz/infoHyperliquid info API used for the real HYPE price and 24h change. If it is down the ticker is flagged stale
EXPLORER_URLhttps://elysium.kinetiq.xyz/explorerBlock explorer base URL used for links
CHAIN_CONFIRMATIONS5Blocks the indexer stays behind the head (reorg safety)
CHAIN_LOG_RANGE2000Maximum eth_getLogs block range per request (halved automatically when the RPC refuses)
CHAIN_POLL_MS2500Indexer poll interval in milliseconds
SSE_MAX_PER_IP12 in productionMaximum concurrent /api/stream connections per client IP
PORT, HOSTNAME3030, 0.0.0.0Listen address of the standalone server
NEXT_DIST_DIR.nextBuild into another folder (e.g. while the previous build is still being served)
Generate a session secretShell
node -e "console.log(require('crypto').randomBytes(48).toString('base64url'))"
Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0