btcpayserver: use option bitcoind.rpc.port

This commit is contained in:
Erik Arvstedt 2020-10-16 17:43:10 +02:00
parent 6f4715ac2a
commit 001f8fe8d3
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -106,7 +106,7 @@ in {
configFile = builtins.toFile "config" ''
network=mainnet
btcrpcuser=${cfg.bitcoind.rpc.users.btcpayserver.name}
btcrpcurl=http://${builtins.elemAt config.services.bitcoind.rpcbind 0}:8332
btcrpcurl=http://${builtins.elemAt config.services.bitcoind.rpcbind 0}:${toString cfg.bitcoind.rpc.port}
btcnodeendpoint=${config.services.bitcoind.bind}:8333
bind=${cfg.nbxplorer.bind}
'';