grafana: Add plugins, disable HTML sanitization

This commit is contained in:
Erwin Boskma 2024-03-16 23:06:01 +01:00
parent c757e6cfb0
commit f2ebda369a
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -1,17 +1,28 @@
{ config, ... }:
{ pkgs, config, ... }:
{
services.grafana = {
enable = true;
declarativePlugins = with pkgs.grafanaPlugins; [
grafana-piechart-panel
grafana-polystat-panel
grafana-clock-panel
];
settings = {
log = {
level = "info";
};
panels = {
disable_sanitize_html = true;
};
server = {
domain = "saga.datarift.nl";
enforce_domain = true;
http_addr = "0.0.0.0";
root_url = "https://saga.datarift.nl";
};
"auth.generic_oauth" = {
enabled = true;
name = "Keycloak";