tsuki/grafana: use UNIX socket behind nginx
This commit is contained in:
parent
1f3b5addd3
commit
fd052eea5a
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue