Merge pull request #263558 from Ma27/fix-image-renderer-callback

nixos/grafana-image-renderer: use Grafana's http_addr rather than localhost
This commit is contained in:
Maximilian Bosch 2023-11-02 15:49:23 +01:00 committed by GitHub
commit dbb68f0b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;