mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
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:
parent
d0d6219c42
commit
15e17917fc
@ -108,7 +108,7 @@ in {
|
|||||||
|
|
||||||
services.grafana.settings.rendering = mkIf cfg.provisionGrafana {
|
services.grafana.settings.rendering = mkIf cfg.provisionGrafana {
|
||||||
server_url = "http://localhost:${toString cfg.settings.service.port}/render";
|
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;
|
services.grafana-image-renderer.chromium = mkDefault pkgs.chromium;
|
||||||
|
Loading…
Reference in New Issue
Block a user