I’m trying to create a working config work OCIS with ClamAV running behind reverse proxy (which also handles TLS etc) - thus I can use the OCIS-full generation utility only for reference purposes.
After failing to add ClamAV to my working instance with Collabora and external IdP I’ve created a pretty minimal compose.yaml
with following content:
services:
ocis:
container_name: ocis
hostname: ocis
image: owncloud/ocis:latest
restart: unless-stopped
entrypoint:
- /bin/sh
command: ["-c", "ocis init || true; ocis server"]
expose:
- 9200
ports:
- "9200:9200"
- "9233:9233"
environment:
DEMO_USERS: false
PROXY_TLS: false
OCIS_INSECURE: false
OCIS_URL: https://testocis.mydomain.app
# Antivir section
ANTIVIRUS_EVENTS_ENABLE_TLS: false
OCIS_ADD_RUN_SERVICES: antivirus
ANTIVIRUS_SCANNER_TYPE: clamav
ANTIVIRUS_CLAMAV_SOCKET: /var/run/clamav/clamd.sock
POSTPROCESSING_STEPS: virusscan
volumes:
- $PWD/config:/etc/ocis
- $PWD/data:/var/lib/ocis
- clamav-socket:/var/run/clamav
clamav:
container_name: clamav-ocis
image: clamav/clamav:latest
logging:
driver: local
restart: always
volumes:
- clamav-socket:/tmp
- clamav-db:/var/lib/clamav
volumes:
clamav-socket:
clamav-db:
After starting I’ve checked whether clamd socket is present in ocis container:
But when I try to upload a file I get:
{
"level": "error",
"service": "antivirus",
"error": "Get \"https://localhost:9200/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NDk5MDA3NDMsImlhdCI6MTc0OTgxNDM0MywidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzL2RhODcxNDdiLTlhYWQtNGI0Yi05MjZhLTk1M2YyYzViODhjYyJ9.dD_MkO1lyaS32Jh2qetMpEEjXufJYo3OOb4OM3fI-q0\": http: server gave HTTP response to HTTPS client",
"uploadid": "da87147b-9aad-4b4b-926a-953f2c5b88cc",
"time": "2025-06-13T11:42:58Z",
"message": "error downloading file"
}
Any suggestions howto configure antivirus with OCIS?