It is a heroku buildpack for setting up a Clam Antivirus daemon.
- Login to your Heroku app dashboard and click on
Settings
. Then scroll toBuildpacks
. - At the top of the buildpack list, add the following two buildpacks, in the following order:
https://github.com/heroku/heroku-buildpack-apt
(a buildpack offered by Heroku that adds support for apt-based dependencies)https://github.com/bradleymarques/heroku-buildpack-clamav
(this buildpack).
- Open your rails project.
- In the root directory, add a new file named
Aptfile
(without extension) - Add the following content to this file:
# Aptfile
# This file lists the required apt packages. These are installed by the heroku-buildpack-apt buildpack
# See https://github.com/heroku/heroku-buildpack-apt for details
# Antivirus
clamav
clamav-daemon
clamav-freshclam
- Add the following file to your Rails project:
config/antivirus/freshclam.conf
. - Add the following contents to this file:
# config/antivirus/freshclam.conf
# This config file specifies where the application 'freshclam' looks for virus definition databases
DatabaseMirror database.clamav.net
- Also add the following file to your Rails project:
config/antivirus/clamd.conf
. - Add the following contents to this file:
# config/antivirus/clamd.conf
# TODO: I AM NOT SURE WHAT NEEDS TO BE IN THIS FILE
- (UNSURE) Create a worker that starts clamd