Commit c1f2face authored by Elijah M. Immer's avatar Elijah M. Immer
Browse files

scrutiny.collector: fix endpoint to include basepath

When the base path is specified, yet not added to the endpoint scrutiny
will not be able to collect any data, and will thus not work properly.
parent 932a3ae3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -143,8 +143,8 @@ in

            options.api.endpoint = mkOption {
              type = str;
              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}"'';
              default = "http://${cfg.settings.web.listen.host}:${toString cfg.settings.web.listen.port}${cfg.settings.web.listen.basepath}";
              defaultText = literalExpression ''"http://''${config.services.scrutiny.settings.web.listen.host}:''${config.services.scrutiny.settings.web.listen.port}''${config.services.scrutiny.settings.web.listen.basepath}"'';
              description = "Scrutiny app API endpoint for sending metrics to.";
            };