Connect API to real Lightning node #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The API currently runs in LNBits stub mode. For production, connect to a real
Lightning node.
Requirements
infrastructure/directory in this repo has everything neededsetup.shon a DO droplet to bootstrap the nodeLNBITS_URL,LNBITS_API_KEYSteps
infrastructure/setup.shAcceptance Criteria
References
infrastructure/PR created: http://143.198.27.163:3000/replit/token-gated-economy/pulls/64
The infrastructure scripts already covered the full node provisioning flow. This PR closes the API-side configuration gap:
.env.example— documentsLNBITS_URL,LNBITS_API_KEYand all other required env vars; operators copy values printed bylnd-init.shGET /api/healthz— now returnslnbits_stub: boolandlnbits_urlso operators can verify real Lightning connectivity at a glanceWARNlog ifLNBITS_URL/LNBITS_API_KEYare absent inNODE_ENV=productionSwitching from stub to real mode requires only setting those two env vars after running
infrastructure/lnd-init.shon the droplet.