diff options
Diffstat (limited to 'hosts/omega-relay')
| -rw-r--r-- | hosts/omega-relay/default.nix | 9 | ||||
| -rw-r--r-- | hosts/omega-relay/firewall.nix | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/hosts/omega-relay/default.nix b/hosts/omega-relay/default.nix index ab2dcfa..27cbf13 100644 --- a/hosts/omega-relay/default.nix +++ b/hosts/omega-relay/default.nix @@ -50,6 +50,7 @@ isVM = config.addons.virtualisation.isTestVM; in { + prometheus.enableExporters = true; desecDyn = { enable = true; domains."wilkuu.dedyn.io" = { @@ -182,6 +183,14 @@ tryFiles = "$uri $uri/ =404"; }; }; + virtualHosts."moni.wilkuu.xyz" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.88.5:3132"; + recommendedProxySettings = true; + }; + }; }; networking.hostName = "omega-relay"; diff --git a/hosts/omega-relay/firewall.nix b/hosts/omega-relay/firewall.nix index 38cd9a1..c276831 100644 --- a/hosts/omega-relay/firewall.nix +++ b/hosts/omega-relay/firewall.nix @@ -23,7 +23,16 @@ let secureTCP = [ # config.wilkuu.services.mysql.port - ]; + ] + ++ lib.mapAttrsToList (_: opt: opt.port) ( + lib.filterAttrs ( + _: e: + let + evaluated = builtins.tryEval e; + in + evaluated.success && e ? enable && e.enable + ) config.services.prometheus.exporters + ); secureUDP = [ ]; |
