[claude] Connect API to real Lightning node (#12) #64

Merged
Rockachopa merged 2 commits from claude/issue-12 into main 2026-03-23 20:54:49 +00:00

2 Commits

Author SHA1 Message Date
Alexander Whitestone
6be35c6cd2 WIP: Claude Code progress on #12
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
Automated salvage commit — agent session ended (exit 0).
Work in progress, may need continuation.
2026-03-23 16:52:13 -04:00
Alexander Whitestone
cd3bbda690 feat: connect API to real Lightning node (env vars, healthz, startup warning)
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
- 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>
2026-03-23 16:44:34 -04:00