services: grafana: fix server listen address

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-08-06 00:44:03 +02:00
parent 851aa3abb0
commit 57f2ea8e5b
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -18,7 +18,7 @@ in {
name = "grafana";
};
server = {
http_addr = "[::1]";
http_addr = "::1";
domain = fqdn;
root_url = "https://${fqdn}";
serve_from_sub_path = true;
@ -68,7 +68,7 @@ in {
kTLS = true;
locations."/" = {
proxyPass =
"http://${serverCfg.http_addr}:${toString serverCfg.http_port}";
"http://[${serverCfg.http_addr}]:${toString serverCfg.http_port}";
proxyWebsockets = true;
};
};