btcpayserver: fix lnd with "bind to any" restAddress

This commit is contained in:
Erik Arvstedt 2024-08-29 20:34:36 +02:00
parent 31b79391cf
commit 8e34b25164
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -214,7 +214,7 @@ in {
'' + optionalString (cfg.btcpayserver.lightningBackend == "lnd") '' + optionalString (cfg.btcpayserver.lightningBackend == "lnd")
( (
"btclightning=type=lnd-rest;" + "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;" + "macaroonfilepath=/run/lnd/btcpayserver.macaroon;" +
"certfilepath=${config.services.lnd.certPath}" + "certfilepath=${config.services.lnd.certPath}" +
"\n" "\n"