Merge fort-nix/nix-bitcoin#733: btcpayserver: fix lnd with "bind to any" restAddress

8e34b25164 btcpayserver: fix lnd with "bind to any" `restAddress` (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    utACK 8e34b25164

Tree-SHA512: b89c1502e1f9efd892cbbdda778a3752e671e3a57a412d154d92f6dd5c7c148bc02ac3fdd7af0626f38cfe95b53dfb8251fa487f7770aa8476a3089faded51c4
This commit is contained in:
Jonas Nick 2024-08-29 20:00:26 +00:00
commit 901f1250fd
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -214,7 +214,7 @@ in {
'' + optionalString (cfg.btcpayserver.lightningBackend == "lnd")
(
"btclightning=type=lnd-rest;" +
"server=https://${cfg.lnd.restAddress}:${toString cfg.lnd.restPort}/;" +
"server=https://${nbLib.address cfg.lnd.restAddress}:${toString cfg.lnd.restPort}/;" +
"macaroonfilepath=/run/lnd/btcpayserver.macaroon;" +
"certfilepath=${config.services.lnd.certPath}" +
"\n"