{"repo":"ngx-l402/ngx-l402","free":true,"listed":false,"github":"https://github.com/ngx-l402/ngx-l402","clone":"git clone https://github.com/ngx-l402/ngx-l402.git","description":"nginx module for L402 authentication to enable Lightning Network-based API monetization","language":"Rust","stars":53,"topics":["bitcoin","lightning-network","nginx","rust"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"ngx l402 — L402 Nginx Module An L402 authentication module for Nginx that enables Lightning Network-based monetization for your REST APIs (HTTP/1 and HTTP/2). Supports LND , LNC , CLN , Eclair , LNURL , NWC , and BOLT12 backends. For local contributor setup on macOS (Docker nginx recommended), see docs/macos-setup.md . ✨ Key Features - Server-side auto-detect — Enable l402 auto detect payment on in nginx.conf and clients no longer need to include the preimage in the Authorization header. The module queries your Lightning node directly (LND, CLN, or Eclair) to confirm payment settlement. - Classic preimage flow — Standard L402 : header is always supported. - Cashu eCash support — Accept Cashu tokens as an alternative payment method via the X-Cashu header. - Redis caching — Settled preimages are cached in Redis to avoid repeated node lookups. - Multi-tenant LNURL — Per-location LNURL addresses for multi-tenant deployments. --- 📖 Documentation Full documentation is available at: https://ngx-l402.org/docs/ - Installation - Docker Setup - Configuration & Environment Variables - Cashu eCash Support - Multi-Tenant - Dry-Run (Shadow) Mode - Building from Source --- ⚡ Quick Start Requires NGINX 1.28.0 or later. Pre-built binaries are published for several NGINX versions — see the assets on the latest release. For anything else, build from source: Test it: --- Contributing See CONTRIBUTING.md for guidelines. License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/ngx-l402","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ngx-l402/ngx-l402/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}