[achatina-fulica] Host grafana

This commit is contained in:
Malte Tammena 2021-12-10 08:05:32 +01:00
parent 1e0a8ec791
commit d24a8a07cf
3 changed files with 9 additions and 2 deletions

View file

@ -136,7 +136,7 @@
./hardware/netcup-minimal.nix
./modules/nginx-reverse-proxy.nix
./modules/radicale.nix
#./modules/grafana.nix
./modules/grafana.nix
];
};

View file

@ -23,6 +23,7 @@
dataCollector.enable = true;
envFile = config.sops.secrets.gladosEnv.path;
};
systemd.services.glados.serviceConfig.SupplementaryGroups =
[ config.users.groups.keys.name ];

View file

@ -3,14 +3,20 @@
{
services.grafana = {
enable = true;
domain = "grafana.tammena.rocks";
domain = "data.ccqcraft.de";
port = 2342;
addr = "127.0.0.1";
auth.anonymous = {
enable = true;
org_role = "Viewer";
org_name = "CCQCraft";
};
};
services.nginx.virtualHosts.${config.services.grafana.domain} = {
enableACME = true;
forceSSL = true;
serverAliases = [ "data.tammena.rocks" "grafana.tammena.rocks" ];
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;