Had to do a toString, thanks for the great error message nixos, fixed some other typos

This commit is contained in:
Lillian Violet 2024-03-26 14:52:15 +01:00
parent 9dacc2172e
commit 3c830bc6c4

View file

@ -12,22 +12,25 @@
http_addr = "127.0.0.1"; http_addr = "127.0.0.1";
}; };
provision = { provision = {
datasources = [ datasources.settings = {
{ apiVersion = 1;
name = "Prometheus"; datasources = [
type = "prometheus"; {
access = "proxy"; name = "Prometheus";
url = "http://localhost:${config.services.prometheus.port}"; type = "prometheus";
isDefault = true; access = "proxy";
} url = "http://localhost:${toString config.services.prometheus.port}";
# { isDefault = true;
# name = "Loki"; }
# type = "loki"; # {
# access = "proxy"; # name = "Loki";
# url = "http://localhost:${config.services.loki.port}"; # type = "loki";
# isDefault = true; # access = "proxy";
# } # url = "http://localhost:${config.services.loki.port}";
]; # isDefault = true;
# }
];
};
}; };
}; };
@ -38,7 +41,7 @@
## LetsEncrypt ## LetsEncrypt
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.port}"; proxyPass = "http://${toString config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };