Fix immich setup

This commit is contained in:
soraefir
2026-05-15 02:12:14 +02:00
parent 00bdef4307
commit 8769b6da9d
4 changed files with 35 additions and 6 deletions

View File

@@ -115,6 +115,7 @@ in {
echo "Jellyfin initialization successfully completed!"
fi
${lib.optionalString (serverCfg.containers ? authentik) ''
JELLYFIN_TOKEN=$(${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/Users/AuthenticateByName" \
-H "Content-Type: application/json" \
-H "Authorization: MediaBrowser Client=\"Bash Script\", Device=\"Server Terminal\", DeviceId=\"script-12345\", Version=\"1.0.0\"" \
@@ -166,6 +167,7 @@ in {
echo "ERROR: LDAP Plugin Setup Failed."
exit 1
fi
''}
echo "Completed Setup"