update grafana

feature/refacoring
Ingolf Wagner 2023-02-10 16:22:00 +01:00
parent ce96ef77a3
commit c565a9873a
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 12 additions and 8 deletions

View File

@ -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";
};
};
}

View File

@ -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";
};
};
}