Merge branch 'main' into main

This commit is contained in:
Kosztyk 2025-12-26 23:43:51 +01:00 committed by GitHub
commit 09e0e840b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 492 additions and 106 deletions

View file

@ -28,21 +28,4 @@ export const MAX_CONVERT_PROCESS =
export const UNAUTHENTICATED_USER_SHARING =
process.env.UNAUTHENTICATED_USER_SHARING?.toLowerCase() === "true" || false;
// ─────────────────────────────────────────────────────────────
// ClamAV / Antivirus integration
// ─────────────────────────────────────────────────────────────
// REST endpoint of benzino77/clamav-rest-api, e.g.
// CLAMAV_URL=http://192.168.68.134:3000/api/v1/scan
export const CLAMAV_URL = process.env.CLAMAV_URL ?? "";
// True only if CLAMAV_URL is non-empty
export const CLAMAV_CONFIGURED = CLAMAV_URL.length > 0;
// Default AV toggle value:
// - If ANTIVIRUS_ENABLED_DEFAULT=false → force disabled
// - Otherwise: enabled only when CLAMAV is configured
export const ANTIVIRUS_ENABLED_DEFAULT =
process.env.ANTIVIRUS_ENABLED_DEFAULT?.toLowerCase() === "false"
? false
: CLAMAV_CONFIGURED;
export const TIMEZONE = process.env.TZ || undefined;