remove redudnant options
This commit is contained in:
parent
2a605151f8
commit
4ce0f69fb3
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