Skip to content

Commit 08ca1c4

Browse files
MartinNikovPetarKirov
authored andcommitted
config(modules/nethermind): Add JsonRpc.Host option
1 parent f9ff880 commit 08ca1c4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/nethermind/args.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ with lib; {
6161
description = "Defines whether the JSON RPC service is enabled on node startup.";
6262
};
6363

64+
Host = mkOption {
65+
type = types.str;
66+
default = "127.0.0.1";
67+
description = "Host for JSON RPC service calls.";
68+
};
69+
6470
Port = mkOption {
6571
type = types.either types.port (types.enum ["\${PORT}"]);
6672
default = 8545;

modules/nethermind/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ in {
7777
description = "Nethermind Node (${nethermindName})";
7878

7979
environment = {
80-
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.EngineHost;
80+
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.Host;
8181
WEB3_HTTP_PORT = builtins.toString cfg.args.modules.JsonRpc.Port;
8282
};
8383

0 commit comments

Comments
 (0)