Lux Docs

Environment Variables

Complete reference for backend and frontend configuration

Backend Variables

VariableExampleDescription
DATABASE_URLpostgresql://user:pass@host:5432/dbPostgreSQL connection
REDIS_URLredis://redis:6379Redis cache
ETHEREUM_JSONRPC_HTTP_URLhttp://luxd:9630/ext/bc/C/rpcRPC endpoint
ETHEREUM_JSONRPC_WS_URLws://luxd:9630/ext/bc/C/wsWebSocket RPC
CHAIN_ID96369EVM chain ID
COINLUXNative currency symbol
NETWORKLUX NetworkNetwork display name
SUBNETWORKC-ChainSubnetwork name

Frontend Variables

VariableExampleDescription
NEXT_PUBLIC_API_HOSThttps://api-explore.lux.networkBackend API URL
NEXT_PUBLIC_NETWORK_NAMELUX NetworkDisplay name
NEXT_PUBLIC_NETWORK_ID96369Network ID
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOLLUXCurrency symbol
NEXT_PUBLIC_APP_HOSTexplore.lux.networkFrontend hostname
NEXT_PUBLIC_COLOR_THEME_DEFAULTdarkDefault theme
NEXT_PUBLIC_FONT_FAMILY_HEADINGGeist, sans-serifHeading font

Memory Optimization Variables

INDEXER_DISABLE_COIN_BALANCE_FETCHER=true
INDEXER_DISABLE_BLOCK_REWARD_FETCHER=true
INDEXER_DISABLE_EMPTY_BLOCKS_SANITIZER=true
INDEXER_DISABLE_CATALOGED_TOKEN_UPDATER_FETCHER=true
POOL_SIZE=3
POOL_SIZE_API=2
INDEXER_MEMORY_LIMIT=1gb
TXS_STATS_DAYS_TO_COMPILE_AT_INIT=1

See explore/docs/ENVS.md for the complete list of 100+ frontend environment variables.

On this page