# Market Atlas — runtime configuration (copy to .env for local development) APP_ENV=development MA_SITE_URL=http://localhost:8390 MA_API_HOST=127.0.0.1 MA_API_PORT=8391 # production: web 8380 / api 8381 MA_ROLE=all # all | api | worker DATABASE_URL=postgres://localhost:5432/market_atlas MA_DATA_DIR=./data # raw payload archive, backups, logs MA_ADMIN_TOKEN=change-me # x-ma-admin-token header for /v1/admin/* MA_LOG_JSON=0 MA_CONTACT_EMAIL=contact@market-atlas.co # sent in User-Agent to official sources (SEC requires it) HFMD_API_KEY= # hfmarketdata.io key (own data lake) — optional, raises limits MA_DISABLED_CONNECTORS= # comma-separated connector ids to keep off MA_RAW_SAMPLE_RATE=0.02 # share of streaming frames archived at L0 (bulk/poll payloads are always archived) MA_OBSERVATION_RETENTION_DAYS=45 MA_TICK_PERSIST_INTERVAL_MS=2000 # store at most one REALTIME tick per source/instrument/field per 2 s (consensus sees every tick) MA_WEB_UPSTREAM= # production edge mode: proxy every non-/v1 path to the Next.js app (http://127.0.0.1:8382)