From 4797b213eef951c476e29b98132c557c4d1757f5 Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 6 Apr 2023 21:18:54 +1000 Subject: [PATCH] added clamav config --- config/clamav.php | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 config/clamav.php diff --git a/config/clamav.php b/config/clamav.php new file mode 100644 index 0000000..ca26ffa --- /dev/null +++ b/config/clamav.php @@ -0,0 +1,68 @@ + env('CLAMAV_PREFERRED_SOCKET', 'unix_socket'), + + /* + |-------------------------------------------------------------------------- + | Unix Socket + |-------------------------------------------------------------------------- + | This option defines the location to the unix socket-file. For example + | /var/run/clamav/clamd.ctl + */ + 'unix_socket' => env('CLAMAV_UNIX_SOCKET', '/var/run/clamav/clamd.ctl'), + + /* + |-------------------------------------------------------------------------- + | TCP Socket + |-------------------------------------------------------------------------- + | This option defines the TCP socket to the ClamAV instance. + */ + 'tcp_socket' => env('CLAMAV_TCP_SOCKET', 'tcp://127.0.0.1:3310'), + + /* + |-------------------------------------------------------------------------- + | Socket connect timeout + |-------------------------------------------------------------------------- + | This option defines the maximum time to wait in seconds for socket connection attempts before failure or timeout, default null = no limit. + */ + 'socket_connect_timeout' => env('CLAMAV_SOCKET_CONNECT_TIMEOUT', null), + + /* + |-------------------------------------------------------------------------- + | Socket read timeout + |-------------------------------------------------------------------------- + | This option defines the maximum time to wait in seconds for a read. + */ + 'socket_read_timeout' => env('CLAMAV_SOCKET_READ_TIMEOUT', 30), + + /* + |-------------------------------------------------------------------------- + | Throw exceptions instead of returning failures when scan fails. + |-------------------------------------------------------------------------- + | This makes it easier for a developer to find the source of a clamav + | failure, but an end user may only see a 500 error for the user + | if exceptions are not displayed. + */ + 'client_exceptions' => env('CLAMAV_CLIENT_EXCEPTIONS', false), + + /* + |-------------------------------------------------------------------------- + | Skip validation + |-------------------------------------------------------------------------- + | This skips the virus validation for current environment. + | + | Please note when true it won't connect to ClamAV and will skip the virus validation. + */ + 'skip_validation' => env('CLAMAV_SKIP_VALIDATION', false), +];