diff --git a/nixos/boxes/kelder/containers/spoder/nginx.nix b/nixos/boxes/kelder/containers/spoder/nginx.nix index 57f6654..f84c159 100644 --- a/nixos/boxes/kelder/containers/spoder/nginx.nix +++ b/nixos/boxes/kelder/containers/spoder/nginx.nix @@ -135,6 +135,25 @@ in }; }; + "monitor.${lib.my.kelder.domain}" = withAuth { + serverAliases = [ "monitor-local.${lib.my.kelder.domain}" ]; + locations = { + "/" = { + proxyPass = "http://${allAssignments.kelder.ctrs.ipv4.address}:19999"; + extraConfig = '' + proxy_pass_request_headers on; + ${lib.my.nginx.proxyHeaders} + proxy_set_header Connection "keep-alive"; + proxy_store off; + + gzip on; + gzip_proxied any; + gzip_types *; + ''; + }; + }; + }; + "kontent.${lib.my.kelder.domain}" = { extraConfig = localRedirect "kontent-local.${lib.my.kelder.domain}"; serverAliases = [ "kontent-local.${lib.my.kelder.domain}" ]; diff --git a/nixos/boxes/kelder/default.nix b/nixos/boxes/kelder/default.nix index a69d81a..a34d9cb 100644 --- a/nixos/boxes/kelder/default.nix +++ b/nixos/boxes/kelder/default.nix @@ -110,6 +110,14 @@ in greetingLine = ''Welcome to ${config.system.nixos.distroName} ${config.system.nixos.label} (\m) - \l''; helpLine = "\nCall Jack for help."; }; + smartd = { + enable = true; + autodetect = true; + extraOptions = [ "-A /var/log/smartd/" "--interval=600" ]; + }; + netdata = { + enable = true; + }; ddclient = { enable = true; @@ -159,6 +167,10 @@ in system.nixos.distroName = "KelderOS"; systemd = { + tmpfiles.rules = [ + "d /var/log/smartd 0755 root root" + ]; + network = { netdevs = { "25-ctrs".netdevConfig = {