From db1e86b47912ae2236fea5a8f1695b065da8c657 Mon Sep 17 00:00:00 2001 From: Martin Nikov Date: Sat, 7 Dec 2024 20:27:03 +0200 Subject: [PATCH] config(modules/nethermind): Add JsonRpc.Host option --- modules/nethermind/args.nix | 6 ++++++ modules/nethermind/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nethermind/args.nix b/modules/nethermind/args.nix index f48a2d622..4925b4f11 100644 --- a/modules/nethermind/args.nix +++ b/modules/nethermind/args.nix @@ -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; diff --git a/modules/nethermind/default.nix b/modules/nethermind/default.nix index e0860928a..7e93508c0 100644 --- a/modules/nethermind/default.nix +++ b/modules/nethermind/default.nix @@ -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; };