You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 93ad0a8
Browse filesBrowse the repository at this point in the historyBrowse files
Admin: configure the VirusTotal API key from the panel
The VT key was .env-only. Now an admin can set/replace/clear it from Admin ▸ VirusTotal,
stored in the Setting row and applied live (no restart). A DB key overrides VIRUSTOTAL_API_KEY;
clearing it reverts to .env. The key is never echoed back — the UI only shows Active/Inactive.
- Setting.virustotalApiKey column (+ migration); VirusTotalClient.setKey() for hot-swap.
- index.ts loads the stored key at boot; GET/PATCH /admin/settings handle it (fields are now
independently optional). Schema updated, FR/EN strings added.
Copy file name to clipboardExpand all lines: apps/web/src/lib/i18n.tsx
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -323,6 +323,13 @@ const fr: Dict = {
323
323
'admin.statStorageUsed': 'Stockage utilisé',
324
324
'admin.statGlobalCap': 'Plafond global',
325
325
'admin.unlimited': 'Illimité',
326
+
'admin.vtTitle': 'VirusTotal',
327
+
'admin.vtHint': 'Clé API VirusTotal pour la vérification à la demande (seul le hash SHA-256 est envoyé, jamais le fichier). Remplace la valeur du .env.',
328
+
'admin.vtActive': 'Actif',
329
+
'admin.vtInactive': 'Inactif',
330
+
'admin.vtPlaceholder': 'Clé API VirusTotal',
331
+
'admin.vtPlaceholderSet': '•••••••• (clé enregistrée — saisir pour remplacer)',
332
+
'admin.vtClear': 'Supprimer la clé',
326
333
'admin.globalCapTitle': 'Plafond de stockage global',
327
334
'admin.globalCapHint': 'Total d’octets pour tous les utilisateurs. 0 = illimité.',
328
335
'admin.users': 'Utilisateurs',
@@ -756,6 +763,13 @@ const en: Dict = {
756
763
'admin.statStorageUsed': 'Storage used',
757
764
'admin.statGlobalCap': 'Global cap',
758
765
'admin.unlimited': 'Unlimited',
766
+
'admin.vtTitle': 'VirusTotal',
767
+
'admin.vtHint': 'VirusTotal API key for on-demand checks (only the SHA-256 hash is sent, never the file). Overrides the .env value.',
768
+
'admin.vtActive': 'Active',
769
+
'admin.vtInactive': 'Inactive',
770
+
'admin.vtPlaceholder': 'VirusTotal API key',
771
+
'admin.vtPlaceholderSet': '•••••••• (key saved — type to replace)',
772
+
'admin.vtClear': 'Remove key',
759
773
'admin.globalCapTitle': 'Global storage cap',
760
774
'admin.globalCapHint': 'Total bytes across all users. 0 = unlimited.',
0 commit comments