Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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