# clamd.conf for Prometheus # # Overlays the ClamAV official image's default clamd.conf. The one change # that matters is the three size limits: Prometheus accepts files up to # 2 GiB (Caddy + MAX_FILE_BYTES both pinned there), and ClamAV's defaults # are much lower (StreamMaxLength 25 MB, MaxFileSize 100 MB, MaxScanSize # 400 MB). Without these overrides, a mobile APK over ~25 MB comes back # as `"INSTREAM size limit exceeded. ERROR"` and the service rejects it. # # The LogFile / LocalSocket / TCPSocket / User lines mirror the image's # default so dropping this file in via a bind mount doesn't lose anything. LogFile /var/log/clamav/clamd.log LogTime yes LocalSocket /tmp/clamd.sock TCPSocket 3310 User clamav # --- size limits, raised to match Prometheus's 2 GiB upload cap ---------- # INSTREAM is the TCP streaming scan path the service uses — the one that # returns "INSTREAM size limit exceeded" when the client sends too many # bytes. StreamMaxLength caps the stream; the other two cap the file and # the total scanned bytes (archives expand internally). StreamMaxLength 2147483648 MaxFileSize 2147483648 MaxScanSize 2147483648