Skip to content

Commit 080c528

Browse files
add clamav (#213)
1 parent eb08630 commit 080c528

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Deploy ClamAV with SeaTable
2+
3+
### Change the .env file
4+
5+
To install ClamAV, include `clamav.yml` in the `COMPOSE_FILE` variable within your `.env` file. This instructs Docker to download the required images for ClamAV.
6+
7+
Simply copy and paste (:material-content-copy:) the following code into your command line:
8+
9+
```bash
10+
sed -i "s/COMPOSE_FILE='\(.*\)'/COMPOSE_FILE='\1,clamav.yml'/" /opt/seatable-compose/.env
11+
```
12+
13+
### Modify dtable-events.conf
14+
15+
Add the following statements to dtable-events.conf
16+
17+
```conf
18+
[VIRUS SCAN]
19+
enabled = true
20+
scan_command = clamdscan
21+
virus_code = 1
22+
nonvirus_code = 0
23+
scan_interval = 5
24+
scan_size_limit = 20
25+
threads = 2
26+
```
27+
28+
### Download ClamAV and restart
29+
30+
One more step is necessary to download the ClamAV container and restart the SeaTable service.
31+
32+
```bash
33+
cd /opt/seatable-compose
34+
docker compose down
35+
docker compose up -d
36+
```
37+
38+
Wait some minutes until ClamAV finished initializing.
39+
40+
Now ClamAV can be used.

docs/installation/basic-setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The expected output should appear as follows.
6262
# this should be the output of the tree command
6363
/opt/seatable-compose
6464
├── caddy.yml
65+
├── clamav.yml
6566
├── collabora.yml
6667
├── .env
6768
├── .env-release

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ nav:
177177
- Python Pipeline Workflow: installation/advanced/python-pipeline-workflow.md
178178
- MariaDB (standalone): installation/advanced/database-standalone.md
179179
- Seafile (external): installation/advanced/seafile.md
180+
- Virus scan with ClamAV: installation/advanced/virus-scan-with-clamav.md
180181

181182
- Cluster Setup:
182183
- SeaTable Cluster: installation/cluster/seatable-cluster.md

0 commit comments

Comments
 (0)