26 lines
582 B
Nix
26 lines
582 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.grafana = {
|
|
enable = true;
|
|
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;
|
|
};
|
|
};
|
|
}
|