Skip to content

alexpkent/azure-storage-clamav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages