From 6d0454d7a25148a8a0237997f1f3336827c4913d Mon Sep 17 00:00:00 2001 From: dkarv Date: Sat, 1 Nov 2025 12:34:29 +0100 Subject: [PATCH] document the clamav max stream setting --- .env.example | 3 ++- antivirus/clamav.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 2e4c5ca..2821471 100644 --- a/.env.example +++ b/.env.example @@ -209,7 +209,8 @@ COLLABORA_SSL_VERIFICATION=false ### Virusscanner Settings ### # IMPORTANT: If you enable antivirus, you also MUST configure the START_ADDITIONAL_SERVICES # envvar in the OpenCloud Settings above by adding 'antivirus' to the list. -# The maximum scan size the virus scanner can handle, needs adjustment in the scanner config as well. +# The maximum scan size the virus scanner can handle, needs adjustment in the scanner config as well: +# For ClamAV, set CLAMD_CONF_StreamMaxLength in antivirus/clamav.yml to the same or a higher value. # Usable common abbreviations: [KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, PiB, EB, EiB], example: 2GB. # Defaults to "100MB" #ANTIVIRUS_MAX_SCAN_SIZE= diff --git a/antivirus/clamav.yml b/antivirus/clamav.yml index bab93ba..3878fec 100644 --- a/antivirus/clamav.yml +++ b/antivirus/clamav.yml @@ -14,6 +14,10 @@ services: - clamav-socket:/var/run/clamav clamav: image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest} + environment: + # Accepts a number with optional K, M or G suffix. Must be greater or equal to ANTIVIRUS_MAX_SCAN_SIZE above. + # K = KiB (1024), M = MiB (1024 * 1024), G = GiB (1024 * 1024 * 1024) + CLAMD_CONF_StreamMaxLength: 100M networks: opencloud-net: volumes: