update grafana
This commit is contained in:
parent
ce96ef77a3
commit
c565a9873a
2 changed files with 12 additions and 8 deletions
|
@ -14,9 +14,11 @@
|
|||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
domain = "grafana.pepe.private";
|
||||
port = 2342;
|
||||
addr = "localhost";
|
||||
settings.server = {
|
||||
domain = "grafana.pepe.private";
|
||||
http_port = 2342;
|
||||
http_addr = "localhost";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -1,22 +1,24 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
|
||||
services.nginx.virtualHosts.${config.services.grafana.domain} = {
|
||||
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
|
||||
extraConfig = ''
|
||||
allow ${config.tinc.private.subnet};
|
||||
deny all;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.grafana.port}";
|
||||
proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
domain = "grafana.robi.private";
|
||||
port = 2342;
|
||||
addr = "localhost";
|
||||
settings.server = {
|
||||
domain = "grafana.robi.private";
|
||||
http_port = 2342;
|
||||
http_addr = "localhost";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue