Unverified Commit 15e17917 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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.
parent d0d6219c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ in {

    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;