Is there a way to disable antivirus / clamav scanning on document uploads (ENV var, per doc type, etc)? This would be temporary while uploading a batch of 150k+ files from a “trusted” source. Antivirus scanning in this situation only adds unnecessary system load, excessive resource usage, delays, etc. Once the import / migration is complete, scanning can be re-enabled.
Hi,
please note that both suggestions below should be treated with caution since I have never used them in my own environment
OPTION 1
correct my if I’m wrong. Mayan tries to find the clamav executable within the following system setting (configurable via gui or config file):
FILE_METADATA_DRIVERS_ARGUMENTS
clamscan_driver:
path_clamscan: /usr/bin/clamscan
The default value for the binary path is /usr/bin/clamscan
. So if you do not have clamav installed in your environment (i.e. clamav docker container) and not configured in your settings then no antivirus scan happens.
OPTION 2
You could disable an app by using this setting:
COMMON_DISABLED_APPS
and enter [‘file_metadata_clamav’] as a value.
1 Like