pull down to refresh
200 sats \ 5 replies \ @dhananjay OP 13 Mar \ parent \ on: ngx_l402: L402 Authentication for Nginx with LNURL, LND & NWC Support lightning
Thanks! Let me know if you have any suggestions or feature requests.
Will do. I have already shared your repo with our dev at Predyx, they are super excited about what you built. We will start exploring it in depth in a month or so due to other priorities.
Question: Is there a way we can specify a separate invoice/sats amount for every unique API calls. For example we have a "buy share" API
/api/predictions/buy
, each unique API calls would require different sats amount to be paid. The sats amount/invoice can be passed in the http header.reply
Thanks! For now, I've configured the amount field as an environment variable, but I plan to make it configurable per API directly from nginx.conf. Alternatively, I might explore a way to make the amount dynamic, similar to how Aperture handles it.
reply
If you can make it configurable per API using redis/memcache as source of invoice amt, that would be awesome.
reply
If you can make it configurable per API using redis/memcache as source of invoice amt, that would be awesome.
Thank you, that’s a great suggestion, especially for handling dynamic pricing. I’ve created an issue for it and look forward to working on it.
reply
👍
reply