| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Broad-Announce M0 env defaults. Copy to .env if you want docker
- # compose to pick them up; otherwise the compose file's inline
- # values are used.
- BA_ENV=dev
- BA_LOG_LEVEL=info
- # HTTP addrs
- BA_INGESTD_HTTP_ADDR=:8800
- BA_ROUTERD_HTTP_ADDR=:8801
- BA_DELIVERD_HTTP_ADDR=:8802
- BA_ADMIND_HTTP_ADDR=:8803
- # Data tier
- BA_NATS_URL=nats://localhost:4222
- BA_REDIS_URL=redis://localhost:6379/0
- BA_POSTGRES_DSN=postgres://ba:ba@localhost:5432/ba?sslmode=disable
- # Ingestd source protection defaults (SPEC §22)
- BA_INGESTD_MAX_PAYLOAD_BYTES=262144
- BA_INGESTD_RATE_LIMIT_PER_SOURCE=100
- BA_INGESTD_RATE_LIMIT_PER_COMPANY=10000
- BA_INGESTD_MAX_CONCURRENT_PER_IP=64
- BA_INGESTD_DEDUPE_TTL_SECONDS=300
- BA_INGESTD_QUARANTINE_HITS_THRESHOLD=100
- # M6.5: router-level dedupe collapse. A burst of identical
- # alerts is held for up to this many ms, then a single
- # delivery is fanned out with the final dedupe_count.
- BA_ROUTERD_DEDUPE_FLUSH_MS=2000
- BA_INGESTD_QUARANTINE_WINDOW_SECONDS=60
- BA_INGESTD_QUARANTINE_DURATION_SECONDS=300
- # M0 source registry (env-only; M2 swaps for DB)
- # Format: comma-separated company:source:secret triples
- BA_INGESTD_SOURCES=acme-001:prom-prod:s3cret-acme,globex-002:grafana:s3cret-globex
- # M4 MQTT subscriber (ingestd).
- # - MQTT_USERNAME/PASSWORD authenticate the subscriber with EMQX
- # using the built-in-db row "ingestd" / "ingestd-broker-only".
- # - MQTT_SUBSCRIBE is the topic pattern the subscriber joins.
- # The + wildcards are the EMQX single-level wildcard; ba/+/+/incoming
- # matches every (company, source) pair.
- # - Set BA_INGESTD_MQTT_BROKER to "" to disable the MQTT path entirely.
- BA_INGESTD_MQTT_BROKER=tcp://emqx:1883
- BA_INGESTD_MQTT_USERNAME=ingestd
- BA_INGESTD_MQTT_PASSWORD=ingestd-broker-only
- BA_INGESTD_MQTT_SUBSCRIBE=ba/+/+/incoming
- # Optional override; default is "ingestd-mqtt-<hostname>".
- # BA_INGESTD_MQTT_CLIENT_ID=ingestd-mqtt-1
- # Shutdown
- BA_SHUTDOWN_GRACE_SEC=15
|