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
1 changed files with 5 additions and 4 deletions

View File

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