remove ClamAV because of GPL and started work on read-only filesystem
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
SecUploadDir /tmp
|
||||
SecUploadKeepFiles On
|
||||
SecRule FILES_TMPNAMES "@inspectFile /opt/scripts/clamav.sh" \
|
||||
"phase:2,t:none,deny,msg:'Virus found in uploaded file',id:'399999'"
|
||||
@@ -53,11 +53,6 @@ SecAuditEngine {{ MODSECURITY_SEC_AUDIT_ENGINE }}
|
||||
SecAuditLogType Serial
|
||||
SecAuditLog /var/log/nginx/modsec_audit.log
|
||||
|
||||
# scan uploaded files with clamv
|
||||
{% if USE_CLAMAV_UPLOAD == "yes" %}
|
||||
include {{ NGINX_PREFIX }}modsecurity-clamav.conf
|
||||
{% endif %}
|
||||
|
||||
# include OWASP CRS configuration
|
||||
{% if USE_MODSECURITY_CRS == "yes" %}
|
||||
include /opt/owasp/crs.conf
|
||||
|
||||
@@ -144,8 +144,8 @@ server {
|
||||
{% endif %}
|
||||
|
||||
# brotli compression
|
||||
{% if USE_GZIP == "yes" %}
|
||||
include {{ NGINX_PREFIX }}gzip.conf;
|
||||
{% if USE_BROTLI == "yes" %}
|
||||
include {{ NGINX_PREFIX }}brotli.conf;
|
||||
{% endif %}
|
||||
|
||||
# maximum body size
|
||||
|
||||
Reference in New Issue
Block a user