# Environment variables for tcp-ingestion. # Copy to .env and fill in values for local development. # All variables are optional except REDIS_URL. # Runtime environment: development | test | production NODE_ENV=development # Unique identifier for this service instance (used in logs and Redis keys). # Defaults to a random local- if not set. INSTANCE_ID=local-1 # Log level: fatal | error | warn | info | debug | trace LOG_LEVEL=info # TCP port the service listens on for Teltonika device connections. TELTONIKA_PORT=5027 # Redis connection URL — required; no default. REDIS_URL=redis://localhost:6379 # Redis Stream name for normalized Position records. REDIS_TELEMETRY_STREAM=telemetry:teltonika # Maximum number of entries to retain in the Redis Stream (XADD MAXLEN ~). REDIS_STREAM_MAXLEN=1000000 # Port for the Prometheus /metrics HTTP server. # NOTE: No HTTP server runs today — this is reserved for task 1.10 (observability). METRICS_PORT=9090 # In-memory publisher queue capacity before overflow (oldest records dropped). PUBLISH_QUEUE_CAPACITY=10000 # Strict device auth: reject connections from IMEIs not in the Redis allow-list. # Requires task 1.13 (RedisAllowListAuthority) to be deployed and configured. # Default false (AllowAllAuthority accepts every IMEI). STRICT_DEVICE_AUTH=false