Skip to content

Commit

Permalink
fix: nimbus-beacon rest.allow-origin bad default (#453)
Browse files Browse the repository at this point in the history
* fix: nimbus-beacon rest.allow-origin bad default
* fix: remove duplicate Nimbus data-dir flag
  • Loading branch information
iofq authored Feb 4, 2024
1 parent c6a322f commit fd1cb1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/nimbus-beacon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 [
Expand Down

0 comments on commit fd1cb1f

Please sign in to comment.