This commit is contained in:
soraefir
2026-05-14 00:21:53 +02:00
parent 2cb8d6c24e
commit 677c9bc7d4

View File

@@ -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