[achatina-fulica] Host grafana
This commit is contained in:
parent
1e0a8ec791
commit
d24a8a07cf
|
@ -136,7 +136,7 @@
|
|||
./hardware/netcup-minimal.nix
|
||||
./modules/nginx-reverse-proxy.nix
|
||||
./modules/radicale.nix
|
||||
#./modules/grafana.nix
|
||||
./modules/grafana.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
dataCollector.enable = true;
|
||||
envFile = config.sops.secrets.gladosEnv.path;
|
||||
};
|
||||
|
||||
systemd.services.glados.serviceConfig.SupplementaryGroups =
|
||||
[ config.users.groups.keys.name ];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue