From fd1cb1ff7f84c7e29c9b9991087f9080a5dc54d7 Mon Sep 17 00:00:00 2001 From: iofq Date: Sun, 4 Feb 2024 08:22:05 +0000 Subject: [PATCH] fix: nimbus-beacon rest.allow-origin bad default (#453) * fix: nimbus-beacon rest.allow-origin bad default * fix: remove duplicate Nimbus data-dir flag --- modules/nimbus-beacon/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/nimbus-beacon/default.nix b/modules/nimbus-beacon/default.nix index 8ceca3a4..cdf4fb34 100644 --- a/modules/nimbus-beacon/default.nix +++ b/modules/nimbus-beacon/default.nix @@ -105,6 +105,7 @@ in { # filter out certain args which need to be treated differently specialArgs = [ "--jwt-secret" + "--data-dir" "--user" # Not a CLI Flag, only used in systemd service "--rest-enable" "--rest-address" @@ -124,6 +125,8 @@ in { "--rest" "--rest-address=${cfg.args.rest.address}" "--rest-port=${toString cfg.args.rest.port}" + ]) + ++ (optionals (cfg.args.rest.allow-origin != null) [ "--rest-allow-origin=${cfg.args.rest.allow-origin}" ]) ++ (optionals cfg.args.metrics.enable [