- Add .env.example documenting LNBITS_URL and LNBITS_API_KEY (and all
other required env vars) so operators know exactly what to set after
running infrastructure/lnd-init.sh on the droplet.
- Expose lnbits_stub and lnbits_url in GET /api/healthz so operators
can immediately verify whether the API is connected to a real Lightning
node or running in simulated stub mode.
- Emit a loud WARN log at production startup when LNBITS_URL /
LNBITS_API_KEY are absent, pointing to lnd-init.sh for setup.
Infrastructure scripts (setup.sh, lnd-init.sh, sweep.sh, ops.sh,
docker-compose.yml) already cover the full provisioning flow; this
change closes the API-side configuration gap.
Fixes#12
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>