tsuki/grafana: use UNIX socket behind nginx

This commit is contained in:
Oystein Kristoffer Tveit 2023-07-12 23:27:10 +02:00
parent 1f3b5addd3
commit fd052eea5a
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -96,10 +96,9 @@
analytics.check_for_updates = false;
server = {
domain = "log.nani.wtf";
# TODO: use socket
# protocol = [ "socket" ];
http_addr = "127.0.0.1";
http_port = secrets.ports.grafana;
enable_gzip = true;
protocol = "socket";
socket = "/run/grafana/grafana.sock";
};
security = {
@ -117,6 +116,8 @@
};
};
users.groups."grafana".members = [ "nginx" ];
systemd.services.grafana = {
requires = [ "postgresql.service" ];
};