fixes
This commit is contained in:
@@ -7,6 +7,7 @@ let
|
|||||||
config = {
|
config = {
|
||||||
Entrypoint = [ "${pkgs.jellyfin}/bin/jellyfin" ];
|
Entrypoint = [ "${pkgs.jellyfin}/bin/jellyfin" ];
|
||||||
ExposedPorts = { "8096/tcp" = { }; };
|
ExposedPorts = { "8096/tcp" = { }; };
|
||||||
|
Env = [ "HOME=/tmp" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -35,13 +36,11 @@ in {
|
|||||||
imageStream = image;
|
imageStream = image;
|
||||||
# imageFile = image;
|
# imageFile = image;
|
||||||
port = 8096;
|
port = 8096;
|
||||||
# secret = name;
|
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1";
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1";
|
||||||
JELLYFIN_WEB_DIR = "${pkgs.jellyfin-web}/share/jellyfin-web";
|
JELLYFIN_WEB_DIR = "${pkgs.jellyfin-web}/share/jellyfin-web";
|
||||||
JELLYFIN_HttpListenerHost__BindAddress= "0.0.0.0"; #we can use settings.xml override
|
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";
|
JELLYFIN_ServerName = if containerCfg.extra?name then containerCfg.extra.name else "Flix";
|
||||||
|
|
||||||
};
|
};
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--tmpfs=/tmp:rw,noexec,nosuid,size=512m"
|
"--tmpfs=/tmp:rw,noexec,nosuid,size=512m"
|
||||||
@@ -67,7 +66,7 @@ in {
|
|||||||
trigger = "server";
|
trigger = "server";
|
||||||
envFile = config.sops.secrets."CUSTOM".path;
|
envFile = config.sops.secrets."CUSTOM".path;
|
||||||
script = pkgs.writeShellScript "setup" ''
|
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
|
until ${pkgs.curl} -sf "$JELLYFIN_URL/health" > /dev/null 2>&1; do
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user