diff --git a/hosts/sisyphe/configuration.nix b/hosts/sisyphe/configuration.nix index 20deb33..8ec97c9 100644 --- a/hosts/sisyphe/configuration.nix +++ b/hosts/sisyphe/configuration.nix @@ -14,7 +14,7 @@ in imports = [ ./hardware-configuration.nix ./features - ../shared + ../../shared ]; # Use the GRUB 2 boot loader. @@ -96,6 +96,7 @@ in "jellyfin" "bazarr" "calibre-web" + "sabnzbd" username ]; }; diff --git a/hosts/sisyphe/features/multimedia/sabnzbd.nix b/hosts/sisyphe/features/multimedia/sabnzbd.nix index ad2e8f6..fafd37c 100644 --- a/hosts/sisyphe/features/multimedia/sabnzbd.nix +++ b/hosts/sisyphe/features/multimedia/sabnzbd.nix @@ -1,18 +1,20 @@ -{config, pkgs, ...}: +{ config, pkgs, ... }: { services.sabnzbd = { enable = true; - + openFirewall = true; }; - services.caddy.virtualHosts."http://sabnzbd.normandy.sisyphe.hypervirtual.world".extraConfig = '' - reverse_proxy 8080 - ''; -/* + services.caddy.virtualHosts."http://nzb.normandy.sisyphe.hypervirtual.world".extraConfig = '' + reverse_proxy 8080 + ''; + services.prometheus.exporters.sabnzbd = { - enable = true; - servers = [ - localhost - ] - };*/ -} \ No newline at end of file + enable = true; + servers = [ + { sisyphe = { + + }; } + ] + }; +} diff --git a/hosts/sisyphe/features/services/homelab-dashboard.nix b/hosts/sisyphe/features/services/homelab-dashboard.nix index 3ca9d89..c810a46 100644 --- a/hosts/sisyphe/features/services/homelab-dashboard.nix +++ b/hosts/sisyphe/features/services/homelab-dashboard.nix @@ -39,8 +39,12 @@ in }; services.caddy.virtualHosts."http://sisyphe.normandy.hypervirtual.world".extraConfig = '' - reverse_proxy :8082 - ''; + reverse_proxy :8082 + ''; + + services.caddy.virtualHosts."http://home.hypervirtual.world".extraConfig = '' + reverse_proxy :8082 + ''; services.homepage-dashboard = { enable = true; @@ -245,6 +249,13 @@ in }; }; } + { + "Sabnzbd" = { + icon = "sabnzbd"; + description = "s'occupe de naviguer sur les réseaux usenet"; + href = "http://nzb.sisyphe.normandy.hypervirtual.world"; + }; + } ]; } {