mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 02:12:45 +03:00
btcpayserver: add 'port' option
This commit is contained in:
parent
001f8fe8d3
commit
bd2145dc77
@ -34,6 +34,11 @@ in {
|
|||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
description = "The address on which to bind.";
|
description = "The address on which to bind.";
|
||||||
};
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 24444;
|
||||||
|
description = "Port on which to bind.";
|
||||||
|
};
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
# This option is only used by netns-isolation
|
# This option is only used by netns-isolation
|
||||||
internal = true;
|
internal = true;
|
||||||
@ -70,6 +75,11 @@ in {
|
|||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
description = "The address on which to bind.";
|
description = "The address on which to bind.";
|
||||||
};
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 23000;
|
||||||
|
description = "Port on which to bind.";
|
||||||
|
};
|
||||||
lightningBackend = mkOption {
|
lightningBackend = mkOption {
|
||||||
type = types.nullOr (types.enum [ "clightning" "lnd" ]);
|
type = types.nullOr (types.enum [ "clightning" "lnd" ]);
|
||||||
default = null;
|
default = null;
|
||||||
@ -109,6 +119,7 @@ in {
|
|||||||
btcrpcurl=http://${builtins.elemAt config.services.bitcoind.rpcbind 0}:${toString cfg.bitcoind.rpc.port}
|
btcrpcurl=http://${builtins.elemAt config.services.bitcoind.rpcbind 0}:${toString cfg.bitcoind.rpc.port}
|
||||||
btcnodeendpoint=${config.services.bitcoind.bind}:8333
|
btcnodeendpoint=${config.services.bitcoind.bind}:8333
|
||||||
bind=${cfg.nbxplorer.bind}
|
bind=${cfg.nbxplorer.bind}
|
||||||
|
port=${toString cfg.nbxplorer.port}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
description = "Run nbxplorer";
|
description = "Run nbxplorer";
|
||||||
@ -141,9 +152,10 @@ in {
|
|||||||
network=mainnet
|
network=mainnet
|
||||||
postgres=User ID=${cfg.btcpayserver.user};Host=/run/postgresql;Database=btcpaydb
|
postgres=User ID=${cfg.btcpayserver.user};Host=/run/postgresql;Database=btcpaydb
|
||||||
socksendpoint=${cfg.tor.client.socksListenAddress}
|
socksendpoint=${cfg.tor.client.socksListenAddress}
|
||||||
btcexplorerurl=http://${cfg.nbxplorer.bind}:24444/
|
btcexplorerurl=http://${cfg.nbxplorer.bind}:${toString cfg.nbxplorer.port}/
|
||||||
btcexplorercookiefile=${cfg.nbxplorer.dataDir}/Main/.cookie
|
btcexplorercookiefile=${cfg.nbxplorer.dataDir}/Main/.cookie
|
||||||
bind=${cfg.btcpayserver.bind}
|
bind=${cfg.btcpayserver.bind}
|
||||||
|
port=${toString cfg.btcpayserver.port}
|
||||||
'' + optionalString (cfg.btcpayserver.lightningBackend == "clightning") ''
|
'' + optionalString (cfg.btcpayserver.lightningBackend == "clightning") ''
|
||||||
btclightning=type=clightning;server=unix:///${cfg.clightning.dataDir}/bitcoin/lightning-rpc
|
btclightning=type=clightning;server=unix:///${cfg.clightning.dataDir}/bitcoin/lightning-rpc
|
||||||
'');
|
'');
|
||||||
|
Loading…
Reference in New Issue
Block a user