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.
This commit is contained in:
Maximilian Bosch 2023-10-26 12:57:39 +02:00
parent d0d6219c42
commit 15e17917fc
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -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;