mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
C-ICAP: fix templating in virus_scan.conf (#281)
This commit is contained in:
@@ -8,19 +8,23 @@ virus_scan.ScanFileTypes {{ OPNsense.cicap.antivirus.scanfiletypes.replace(',',
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.sendpercentdata') and OPNsense.cicap.antivirus.sendpercentdata != '' %}
|
||||
virus_scan.SendPercentData 5
|
||||
virus_scan.SendPercentData {{ OPNsense.cicap.antivirus.sendpercentdata }}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.startsendpercentdataafter') and OPNsense.cicap.antivirus.startsendpercentdataafter != '' %}
|
||||
virus_scan.StartSendPercentDataAfter 2M
|
||||
virus_scan.StartSendPercentDataAfter {{ OPNsense.cicap.antivirus.startsendpercentdataafter }}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.allow204responses') and OPNsense.cicap.antivirus.allow204responses != '' %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.allow204responses') and OPNsense.cicap.antivirus.allow204responses == '1' %}
|
||||
virus_scan.Allow204Responces on
|
||||
{% else %}
|
||||
virus_scan.Allow204Responces off
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.passonerror') and OPNsense.cicap.antivirus.passonerror != '' %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.passonerror') and OPNsense.cicap.antivirus.passonerror == '1' %}
|
||||
virus_scan.PassOnError on
|
||||
{% else %}
|
||||
virus_scan.PassOnError off
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.cicap.antivirus.maxobjectsize') and OPNsense.cicap.antivirus.maxobjectsize != '' %}
|
||||
virus_scan.MaxObjectSize 5M
|
||||
virus_scan.MaxObjectSize {{ OPNsense.cicap.antivirus.maxobjectsize }}
|
||||
{% endif %}
|
||||
Module common clamd_mod.so
|
||||
clamd_mod.ClamdHost 127.0.0.1
|
||||
|
||||
Reference in New Issue
Block a user