diff options
author | Jon Seager <jon@sgrs.uk> | 2024-06-11 08:46:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 08:46:03 +0100 |
commit | 5b403d5f9c3dc03cc863c6c007ec5c9ed7275864 (patch) | |
tree | f1f664d0403258909cbe3b009830ccd12080ac6a | |
parent | 8e5bca2ebf8d62f8cb15270874fa1d565a6a8d9f (diff) | |
parent | 5c922605bb3faae9405ea6f6824b7f3efc845d05 (diff) |
Merge pull request #318866 from f0x52/patch-3
nixos/scrutiny: Default collector API url to configured host + port
-rw-r--r-- | nixos/modules/services/monitoring/scrutiny.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix index 031f5a30cada6..c649d333e401a 100644 --- a/nixos/modules/services/monitoring/scrutiny.nix +++ b/nixos/modules/services/monitoring/scrutiny.nix @@ -140,8 +140,8 @@ in options.api.endpoint = mkOption { type = str; - default = "http://localhost:${toString cfg.settings.web.listen.port}"; - defaultText = literalExpression ''"http://localhost:''${config.services.scrutiny.settings.web.listen.port}"''; + default = "http://${cfg.settings.web.listen.host}:${toString cfg.settings.web.listen.port}"; + defaultText = literalExpression ''"http://''${config.services.scrutiny.settings.web.listen.host}:''${config.services.scrutiny.settings.web.listen.port}"''; description = "Scrutiny app API endpoint for sending metrics to."; }; |