Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 847 Bytes

readme.md

File metadata and controls

21 lines (13 loc) · 847 Bytes
  1. Deploy this Azure Function to a function app, the config settings on the app required is:
  • STORAGE_CONNECTION with the value as the connection string for the storage account to trigger on uploads
  • SCAN_SERVER_IP with the IP address of the Container Instance to send the scans to. Public or private if inside the same VNET

The scan container name is hardcoded as clamcontainer

  1. Deploy a Container Instance from this container https://hub.docker.com/r/tiredofit/clamav

For large files the following Container Instance environment variables are required:

  • MAX_SCAN_SIZE
  • STREAM_MAX_LENGTH
  • MAX_FILE_SIZE

For 2GB set the values to 2000M

  1. Upload blobs into the scan container

Blobs will be sent to clamav container, scanned and returned, if scan fails the blob will be replaced with an empty file stating it has been removed.