fix api key gen

This commit is contained in:
soraefir
2026-05-31 12:03:44 +02:00
parent 7bae85db98
commit 41d77a5876
2 changed files with 13 additions and 1 deletions

View File

@@ -169,6 +169,18 @@ in {
fi
''}
${pkgs.sqlite3}/bin/sqlite3 ${serverCfg.configPath}/jellyfin/data/data/jellyfin.db <<EOF
INSERT OR IGNORE INTO ApiKeys (Id, Token, AppName, DeviceName, DateCreated, DateLastActivity)
VALUES (
lower(hex(randomblob(16))),
"$HOMEPAGE_VAR_JELLYFIN_API",
'Home',
'Home',
strftime('%Y-%m-%d %H:%M:%S', 'now'),
strftime('%Y-%m-%d %H:%M:%S', 'now')
);
EOF
echo "Completed Setup"
'';