feat(auth): génération automatique du JWT secret au démarrage

- secret.ts: génère un secret aléatoire 96 chars hex si absent
- secret.ts: persiste dans data/secret.key (mode 600)
- secret.ts: priorité env JWT_SECRET > secret.key > génération
- auth: import JWT_SECRET depuis secret.ts au lieu de process.env
- docker-compose: JWT_SECRET optionnel (géré automatiquement)
- readme: mise à jour — JWT_SECRET n'est plus obligatoire
- feat: add favicon.ico
This commit is contained in:
MasutaYunikon committed 2026-03-11 15:45:00 +01:00
1 parent 867186db98
commit e7afe138e1
3 files changed
+48 -4

No files matched your search

+1 -1
View File
@@ -273,7 +273,7 @@ async function download(key: string, torrent_url: string | null, magnet: string
downloading.value = key
const result = await store.download(torrent_url, magnet)
downloading.value = null
if (result.success) showToast('success', 'Ajouté à qBittorrent !')
if (result.success) showToast('success', 'Téléchargement lancé')
else showToast('error', result.error ?? 'Erreur inconnue')
}