Skip to content

Commit 6d0454d

Browse files
committed
document the clamav max stream setting
1 parent 6f71fef commit 6d0454d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ COLLABORA_SSL_VERIFICATION=false
209209
### Virusscanner Settings ###
210210
# IMPORTANT: If you enable antivirus, you also MUST configure the START_ADDITIONAL_SERVICES
211211
# envvar in the OpenCloud Settings above by adding 'antivirus' to the list.
212-
# The maximum scan size the virus scanner can handle, needs adjustment in the scanner config as well.
212+
# The maximum scan size the virus scanner can handle, needs adjustment in the scanner config as well:
213+
# For ClamAV, set CLAMD_CONF_StreamMaxLength in antivirus/clamav.yml to the same or a higher value.
213214
# Usable common abbreviations: [KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, PiB, EB, EiB], example: 2GB.
214215
# Defaults to "100MB"
215216
#ANTIVIRUS_MAX_SCAN_SIZE=

antivirus/clamav.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ services:
1414
- clamav-socket:/var/run/clamav
1515
clamav:
1616
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
17+
environment:
18+
# Accepts a number with optional K, M or G suffix. Must be greater or equal to ANTIVIRUS_MAX_SCAN_SIZE above.
19+
# K = KiB (1024), M = MiB (1024 * 1024), G = GiB (1024 * 1024 * 1024)
20+
CLAMD_CONF_StreamMaxLength: 100M
1721
networks:
1822
opencloud-net:
1923
volumes:

0 commit comments

Comments
 (0)