/heroku-buildpack-clamav

heroku buildpack that configures clamav and does an initial refresh

Primary LanguageShellMIT LicenseMIT

heroku-buildpack-clamav

What is this?

It is a heroku buildpack for setting up a Clam Antivirus daemon.

Usage

  1. Login to your Heroku app dashboard and click on Settings. Then scroll to Buildpacks.
  2. 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).
  3. Open your rails project.
  4. In the root directory, add a new file named Aptfile (without extension)
  5. 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
  1. Add the following file to your Rails project: config/antivirus/freshclam.conf.
  2. 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
  1. Also add the following file to your Rails project: config/antivirus/clamd.conf.
  2. Add the following contents to this file:
# config/antivirus/clamd.conf

# TODO: I AM NOT SURE WHAT NEEDS TO BE IN THIS FILE
  1. (UNSURE) Create a worker that starts clamd