about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJon Seager <jon@sgrs.uk>2024-06-11 08:46:03 +0100
committerGitHub <noreply@github.com>2024-06-11 08:46:03 +0100
commit5b403d5f9c3dc03cc863c6c007ec5c9ed7275864 (patch)
treef1f664d0403258909cbe3b009830ccd12080ac6a /nixos
parent8e5bca2ebf8d62f8cb15270874fa1d565a6a8d9f (diff)
parent5c922605bb3faae9405ea6f6824b7f3efc845d05 (diff)
Merge pull request #318866 from f0x52/patch-3
nixos/scrutiny: Default collector API url to configured host + port
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/scrutiny.nix4
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.";
             };