From 677c9bc7d4359208fdfe98e0a1cdccb2147586ab Mon Sep 17 00:00:00 2001 From: soraefir Date: Thu, 14 May 2026 00:21:53 +0200 Subject: [PATCH] fixes --- modules/server/containers/apps/jellyfin.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/server/containers/apps/jellyfin.nix b/modules/server/containers/apps/jellyfin.nix index 22bff47..74e8e58 100644 --- a/modules/server/containers/apps/jellyfin.nix +++ b/modules/server/containers/apps/jellyfin.nix @@ -7,6 +7,7 @@ let config = { Entrypoint = [ "${pkgs.jellyfin}/bin/jellyfin" ]; ExposedPorts = { "8096/tcp" = { }; }; + Env = [ "HOME=/tmp" ]; }; }; @@ -35,13 +36,11 @@ in { imageStream = image; # imageFile = image; port = 8096; - # secret = name; extraEnv = { DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1"; JELLYFIN_WEB_DIR = "${pkgs.jellyfin-web}/share/jellyfin-web"; JELLYFIN_HttpListenerHost__BindAddress= "0.0.0.0"; #we can use settings.xml override JELLYFIN_ServerName = if containerCfg.extra?name then containerCfg.extra.name else "Flix"; - }; extraOptions = [ "--tmpfs=/tmp:rw,noexec,nosuid,size=512m" @@ -67,7 +66,7 @@ in { trigger = "server"; envFile = config.sops.secrets."CUSTOM".path; script = pkgs.writeShellScript "setup" '' - JELLYFIN_URL="http://jellyfin-server:8096" + JELLYFIN_URL="https://${containerCfg.subdomain}.${serverCfg.hostDomain}" until ${pkgs.curl} -sf "$JELLYFIN_URL/health" > /dev/null 2>&1; do sleep 5 done