From e909b1f5e3a31beaf1bcd004ef516e5c998b6f09 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Mon, 23 Jun 2025 10:28:24 -0500 Subject: [PATCH] wip nixarr --- hosts/h001/containers/default.nix | 2 + hosts/h001/mods/nixarr.nix | 120 ++++++++++++++++-------------- hosts/oracle/o001/nginx.nix | 1 - 3 files changed, 66 insertions(+), 57 deletions(-) diff --git a/hosts/h001/containers/default.nix b/hosts/h001/containers/default.nix index 7f188a9..fc34091 100644 --- a/hosts/h001/containers/default.nix +++ b/hosts/h001/containers/default.nix @@ -54,6 +54,8 @@ in virtualisation.oci-containers.backend = "podman"; + security.acme.acceptTerms = true; + security.acme.defaults.email = "admin@joshuabell.xyz"; services.nginx = { enable = true; recommendedGzipSettings = true; diff --git a/hosts/h001/mods/nixarr.nix b/hosts/h001/mods/nixarr.nix index ea06e5e..7ff24a5 100644 --- a/hosts/h001/mods/nixarr.nix +++ b/hosts/h001/mods/nixarr.nix @@ -33,62 +33,70 @@ proxyPass = "http://localhost:5055"; }; }; - "100.64.0.13" = { - locations = { - "/jellyfin" = { - proxyPass = "http://localhost:8096"; - extraConfig = '' - rewrite ^/jellyfin/(.*) /$1 break; - ''; - }; - "/jellyseerr" = { - proxyPass = "http://localhost:5055"; - extraConfig = '' - rewrite ^/jellyseerr/(.*) /$1 break; - ''; - }; - "/sabnzbd" = { - proxyPass = "http://localhost:6336"; - extraConfig = '' - rewrite ^/sabnzbd/(.*) /$1 break; - ''; - }; - "/prowlarr" = { - proxyPass = "http://localhost:9696"; - extraConfig = '' - rewrite ^/prowlarr/(.*) /$1 break; - ''; - }; - "/radarr" = { - proxyPass = "http://localhost:7878"; - extraConfig = '' - rewrite ^/radarr/(.*) /$1 break; - ''; - }; - "/sonarr" = { - proxyPass = "http://localhost:8989"; - extraConfig = '' - rewrite ^/sonarr/(.*) /$1 break; - ''; - }; - "/lidarr" = { - proxyPass = "http://localhost:8686"; - extraConfig = '' - rewrite ^/lidarr/(.*) /$1 break; - ''; - }; - "/readarr" = { - proxyPass = "http://localhost:8787"; - extraConfig = '' - rewrite ^/readarr/(.*) /$1 break; - ''; - }; - "/bazarr" = { - proxyPass = "http://localhost:6767"; - extraConfig = '' - rewrite ^/bazarr/(.*) /$1 break; - ''; - }; + "jellyfin.h001.local.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:8096"; + }; + }; + "media.h001.local.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:5055"; + }; + }; + "jellyfin.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:8096"; + }; + }; + "media.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:5055"; + }; + }; + "sabnzbd.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:6336"; + }; + }; + "prowlarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:9696"; + }; + }; + "radarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:7878"; + }; + }; + "sonarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:8989"; + }; + }; + "lidarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:8686"; + }; + }; + "readarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:8787"; + }; + }; + "bazarr.h001.n.joshuabell.xyz" = { + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://localhost:6767"; }; }; }; diff --git a/hosts/oracle/o001/nginx.nix b/hosts/oracle/o001/nginx.nix index cc634d9..bc02ffb 100644 --- a/hosts/oracle/o001/nginx.nix +++ b/hosts/oracle/o001/nginx.nix @@ -45,7 +45,6 @@ ''; }; }; - }; in {