nixos/grafana-image-renderer: use Grafana's http_addr rather than localhost

Otherwise the callback won't work Grafana is configured to listen on a
different IP address by default.

Changed files
+1 -1
nixos
modules
services
+1 -1
nixos/modules/services/monitoring/grafana-image-renderer.nix
···
services.grafana.settings.rendering = mkIf cfg.provisionGrafana {
server_url = "http://localhost:${toString cfg.settings.service.port}/render";
-
callback_url = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
+
callback_url = "http://${config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}";
};
services.grafana-image-renderer.chromium = mkDefault pkgs.chromium;