Add grafana #117
1 changed files with 2 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue