Add grafana #117

Merged
esy merged 7 commits from grafana into main 2024-05-21 02:50:42 +00:00
Showing only changes of commit 4ce0f69fb3 - Show all commits

View file

@ -24,16 +24,6 @@ in {
type = types.str;
};
};
ip = mkOption {
type = types.str;
default = cfg.host.ip;
};
port = mkOption {
type = types.port;
default = port;
};
};
config = mkIf cfg.enable {
@ -52,7 +42,7 @@ in {
services.grafana = {
enable = true;
domain = "${name}.skynet.ie";
port = cfg.port;
port = port;
addr = cfg.host.ip;
};
@ -61,7 +51,7 @@ in {
forceSSL = true;
useACMEHost = "skynet";
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};