Skip to content

Commit

Permalink
config(modules/nethermind): Add JsonRpc.Host option
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNikov committed Dec 7, 2024
1 parent 5e18f91 commit db1e86b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/nethermind/args.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ with lib; {
description = "Defines whether the JSON RPC service is enabled on node startup.";
};

Host = mkOption {
type = types.str;
default = "127.0.0.1";
description = "Host for JSON RPC service calls.";
};

Port = mkOption {
type = types.either types.port (types.enum ["\${PORT}"]);
default = 8545;
Expand Down
2 changes: 1 addition & 1 deletion modules/nethermind/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ in {
description = "Nethermind Node (${nethermindName})";

environment = {
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.EngineHost;
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.Host;
WEB3_HTTP_PORT = builtins.toString cfg.args.modules.JsonRpc.Port;
};

Expand Down

0 comments on commit db1e86b

Please sign in to comment.