Skip to content

Commit

Permalink
move electrs.onionport option
Browse files Browse the repository at this point in the history
Only used in secure-node.nix
  • Loading branch information
erikarvstedt committed Apr 8, 2020
1 parent 74fbfa3 commit 681dbaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 0 additions & 5 deletions modules/electrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ in {
default = 50001;
description = "RPC port.";
};
onionport = mkOption {
type = types.ints.u16;
default = 50002;
description = "Port on which to listen for tor client connections.";
};
extraArgs = mkOption {
type = types.separatedString " ";
default = "";
Expand Down
9 changes: 8 additions & 1 deletion modules/presets/secure-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ let
in {
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 = {
# For backwards compatibility only
nix-bitcoin.secretsDir = mkDefault "/secrets";
Expand Down Expand Up @@ -90,7 +98,6 @@ in {
services.electrs = {
port = 50001;
enforceTor = true;
onionport = 50002;
TLSProxy.enable = true;
TLSProxy.port = 50003;
};
Expand Down

0 comments on commit 681dbaf

Please sign in to comment.