From 80b0bce426edaf1ad211591a7179ca1f960f26b1 Mon Sep 17 00:00:00 2001 From: Morgan Helton Date: Wed, 24 Dec 2025 21:23:58 -0600 Subject: [PATCH] feat(hosts/the-doctor): add jellyswarm --- hosts/the-doctor/default.nix | 1 + hosts/the-doctor/jellyswarm.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 hosts/the-doctor/jellyswarm.nix diff --git a/hosts/the-doctor/default.nix b/hosts/the-doctor/default.nix index efc4841..06582a9 100644 --- a/hosts/the-doctor/default.nix +++ b/hosts/the-doctor/default.nix @@ -9,6 +9,7 @@ ./authentik.nix ./jitsi.nix ./proxy.nix + ./jellyswarm.nix ]; deployment = { diff --git a/hosts/the-doctor/jellyswarm.nix b/hosts/the-doctor/jellyswarm.nix new file mode 100644 index 0000000..831f7b9 --- /dev/null +++ b/hosts/the-doctor/jellyswarm.nix @@ -0,0 +1,32 @@ +{ ... }: +{ + virtualisation.oci-containers = { + backend = "podman"; + containers.jellyswarm = { + volumes = [ + "/var/lib/jellyswarm:/app/data" + ]; + ports = [ + "127.0.0.1:3000:3000" + ]; + image = "ghcr.io/llukas22/jellyswarrm:0.2"; + }; + }; + + services.nginx.virtualHosts."jellyfin.devusb.us" = { + forceSSL = true; + enableACME = true; + acmeRoot = null; + # extraConfig = cloudflareOriginConfig; + locations."/" = { + proxyPass = "http://localhost:3000"; + extraConfig = '' + proxy_ssl_server_name on; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade_keepalive; + ''; + recommendedProxySettings = false; + }; + }; +}