nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
85 stars 36 forks source link

add support for using tls with icap #294

Closed icewind1991 closed 11 months ago

icewind1991 commented 11 months ago

Add support for using TLS for transport encryption with ICAP.

For testing you can put an existing ICAP server behind nginx for the TLS encryption:

load_module /usr/lib/nginx/modules/ngx_stream_module.so;

events {}
stream {

   upstream backend {
       server 127.0.0.1:1344;
  }

   server {
       listen     1345 ssl;
       proxy_pass backend;

       ssl_certificate         /local/cert.pem;
       ssl_certificate_key     /local/key.pem;
       ssl_ciphers             HIGH:!aNULL:!MD5;
       ssl_protocols           TLSv1.2 TLSv1.3;

       proxy_ssl_session_reuse on;
   }
}

or use the https://github.com/icewind1991/icap-clamav-service-tls docker images