Phase 1: lock cron, reload chaud, argon2, providers, IMDb lookup, cache LRU, /health, /metrics, rate limit, UI dark, biome

This commit is contained in:
unfr
2026-04-24 07:35:10 +02:00
parent f9745a2390
commit a184a21f57
36 changed files with 2060 additions and 364 deletions

15
tools/hashPassword.js Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env node
// Generate an argon2id hash for the admin password.
// Usage: node tools/hashPassword.js 'mon-mot-de-passe'
// Then copy the output into .env as ADMIN_PASSWORD_HASH=...
import { hashPassword } from '../lib/password.js';
const plain = process.argv[2];
if (!plain) {
console.error("Usage: node tools/hashPassword.js '<mot-de-passe>'");
process.exit(1);
}
const h = await hashPassword(plain);
console.log(h);