This commit is contained in:
soraefir
2026-05-14 15:43:52 +02:00
parent 252373f956
commit 2e6c044b89
9 changed files with 70 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ let
"jellyfin:x:1000:"
];
};
image = pkgs.dockerTools.buildImage{#pkgs.dockerTools.streamLayeredImage { #
image = pkgs.dockerTools.streamLayeredImage { # pkgs.dockerTools.buildImage{#
name = pkgs.jellyfin.name;
tag = pkgs.jellyfin.version;
contents = [ pkgs.cacert nss pkgs.jellyfin pkgs.bashInteractive ];
@@ -48,8 +48,7 @@ in {
containers = {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
#imageStream = image;
imageFile = image;
imageStream = image;
port = 8096;
extraEnv = {
HOME = "/config/data";
@@ -147,6 +146,14 @@ in {
echo "ERROR: LDAP Plugin Setup Failed."
exit 1
fi
if ! ${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/System/Restart" \
-H "Authorization: MediaBrowser Token=\"$JELLYFIN_TOKEN\"" \
-H "Content-Length: 0"; then
echo "ERROR: Server failed to accept restart command."
exit 1
fi
echo "Completed Setup"
'';