move electrs.onionport option
Only used in secure-node.nix
This commit is contained in:
parent
74fbfa3a5d
commit
681dbaf328
@ -44,11 +44,6 @@ in {
|
|||||||
default = 50001;
|
default = 50001;
|
||||||
description = "RPC port.";
|
description = "RPC port.";
|
||||||
};
|
};
|
||||||
onionport = mkOption {
|
|
||||||
type = types.ints.u16;
|
|
||||||
default = 50002;
|
|
||||||
description = "Port on which to listen for tor client connections.";
|
|
||||||
};
|
|
||||||
extraArgs = mkOption {
|
extraArgs = mkOption {
|
||||||
type = types.separatedString " ";
|
type = types.separatedString " ";
|
||||||
default = "";
|
default = "";
|
||||||
|
@ -21,6 +21,14 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [ ../modules.nix ];
|
imports = [ ../modules.nix ];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
services.electrs.onionport = mkOption {
|
||||||
|
type = types.ints.u16;
|
||||||
|
default = 50002;
|
||||||
|
description = "Port on which to listen for tor client connections.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# For backwards compatibility only
|
# For backwards compatibility only
|
||||||
nix-bitcoin.secretsDir = mkDefault "/secrets";
|
nix-bitcoin.secretsDir = mkDefault "/secrets";
|
||||||
@ -90,7 +98,6 @@ in {
|
|||||||
services.electrs = {
|
services.electrs = {
|
||||||
port = 50001;
|
port = 50001;
|
||||||
enforceTor = true;
|
enforceTor = true;
|
||||||
onionport = 50002;
|
|
||||||
TLSProxy.enable = true;
|
TLSProxy.enable = true;
|
||||||
TLSProxy.port = 50003;
|
TLSProxy.port = 50003;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user