<oembed><type>rich</type><version>1.0</version><title>DhananjayPurohit wrote</title><author_name>DhananjayPurohit (npub1qn…d9r6h)</author_name><author_url>https://nostr.now/npub1qnw27f2jsqvn05wzpd56m7ykgmepk57p0yrzw8fzc7lfhjkmjmqqmd9r6h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.now</provider_url><html>ngx-l402 — an nginx module that puts a Lightning paywall (L402) in front of&#xA;any HTTP API.&#xA;&#xA;Two directives:&#xA;&#xA;  l402 on;&#xA;  l402_amount_msat_default 1000;&#xA;&#xA;A request without payment gets a 402 with a macaroon + BOLT-11 invoice. Pay,&#xA;retry with the preimage, get your 200. &#xA;&#xA;Non-custodial by design: sats settle straight to your own node or Lightning&#xA;address. No account, no intermediary, nothing routed through us.&#xA;&#xA;Lightning backends: LND, CLN, Eclair, LNURL, NWC, BOLT12, LNC.&#xA;&#xA;Cashu eCash works too — the client sends a token in the X-Cashu header&#xA;instead of paying an invoice. Proofs verify offline via NUT-12 DLEQ, so&#xA;there&#39;s no round-trip to the mint on the request path. Bearer, unlinkable,&#xA;and skipping the invoice round-trip makes it the fastest path of the lot.&#xA;&#xA;It also publishes a capability manifest at /.well-known/l402-services, so&#xA;agents can discover your routes and prices and pay — no API key, no signup.&#xA;&#xA;Live demo, 1 sat and learn more at: https://ngx-l402.org&#xA;Code (MIT): https://github.com/ngx-l402/ngx-l402&#xA;&#xA;The repo is mirrored on Nostr via ngit (gitworkshop.dev) and release&#xA;binaries are on Blossom. GitHub flagged the org twice, so the project is&#xA;built to survive being deplatformed.&#xA;&#xA;repo on ngit:- https://gitworkshop.dev/npub1qnw27f2jsqvn05wzpd56m7ykgmepk57p0yrzw8fzc7lfhjkmjmqqmd9r6h/relay.ngit.dev/ngx-l402&#xA;&#xA;Release on blossom: https://nostr.download/03b6473139813e3c06361da15803a61e4c9f86111413a2467227825ed72b093d.gz&#xA;&#xA;#bitcoin #lightning #l402 &#xA;&#xA;</html></oembed>