Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new AppSec feature in CrowdSec plugin and update Coraza #84

Merged
merged 43 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3520b53
deps/gha: bump github/codeql-action from 3.25.4 to 3.25.5
dependabot[bot] May 15, 2024
25c6548
Merge pull request #72 from bunkerity/dependabot/github_actions/dev/g…
TheophileDiot May 15, 2024
c5a3821
deps/gha: bump actions/checkout from 4.1.5 to 4.1.6
dependabot[bot] May 17, 2024
e564848
---
dependabot[bot] May 21, 2024
0fd1ebf
Merge pull request #73 from bunkerity/dependabot/github_actions/dev/a…
TheophileDiot May 24, 2024
37444a1
Merge pull request #74 from bunkerity/dependabot/github_actions/dev/g…
TheophileDiot May 24, 2024
488286d
deps/gha: bump docker/login-action from 3.1.0 to 3.2.0
dependabot[bot] May 29, 2024
89b60a5
deps/gha: bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 13, 2024
8a8cdc5
deps/gha: bump github/codeql-action from 3.25.6 to 3.25.10
dependabot[bot] Jun 14, 2024
7c8a050
deps/coraza/api: bump github.com/corazawaf/coraza/v3 in /coraza/api
dependabot[bot] Jun 24, 2024
f605210
Merge pull request #81 from bunkerity/dependabot/github_actions/dev/g…
TheophileDiot Jun 24, 2024
e4fe74f
Merge pull request #78 from bunkerity/dependabot/github_actions/dev/a…
TheophileDiot Jun 24, 2024
8dfacdd
Merge pull request #75 from bunkerity/dependabot/github_actions/dev/d…
TheophileDiot Jun 24, 2024
5786fa9
Merge pull request #83 from bunkerity/dependabot/go_modules/coraza/ap…
TheophileDiot Jun 24, 2024
ea7ca93
chore: Update Dockerfile for coraza/api
TheophileDiot Jun 24, 2024
d8c0c9b
chore: Bump plugin versions to 1.6
TheophileDiot Jun 24, 2024
9e7f9ae
chore: Bump BunkerWeb versions to 1.5.8
TheophileDiot Jun 24, 2024
7152b88
Update pre-commit-config hooks and apply them
TheophileDiot Jun 24, 2024
f6b1b69
chore: Update crowdsec-bunkerweb-bouncer version to v1.6
TheophileDiot Jun 24, 2024
1e7e44e
chore: Start adding support for new AppSec feature in CrowdSec plugin
TheophileDiot Jun 24, 2024
1fa4405
chore: Update crowdsec docs and default value for CROWDSEC_APPSEC_URL
TheophileDiot Jun 24, 2024
811b472
chore: Update crowdsec-bunkerweb-bouncer version to v1.6
TheophileDiot Jun 24, 2024
f80ad34
Fix empty values in crowdsec plugin's README
TheophileDiot Jun 24, 2024
87f04fe
Update crowdsec README
TheophileDiot Jun 24, 2024
7da1a37
Update crowdsec lua lib files
TheophileDiot Jun 24, 2024
27df826
[#80] Add linux setup to crowdsec README.md
TheophileDiot Jun 24, 2024
afee970
chore: Update CROWDSEC_ALWAYS_SEND_TO_APPSEC and CROWDSEC_APPSEC_SSL_…
TheophileDiot Jun 25, 2024
24bc2b1
chore: Update crowdsec README.md file
TheophileDiot Jun 25, 2024
1e71fcc
deps/gha: bump github/codeql-action from 3.25.10 to 3.25.11
dependabot[bot] Jul 1, 2024
6097cd7
Fix shenanigans with crowdsec plugin and update README.md
TheophileDiot Jul 8, 2024
e8e7f99
Merge pull request #85 from bunkerity/dependabot/github_actions/dev/g…
TheophileDiot Jul 8, 2024
9931d62
chore: fix Dockerfile CVEs for Coraza and add healthcheck
TheophileDiot Jul 8, 2024
3438442
deps/coraza/api: bump golang from `ace6cc3` to `a8836ec` in /coraza/api
dependabot[bot] Jul 8, 2024
fed84e2
Update version in README.MD
TheophileDiot Jul 8, 2024
62c7224
Merge pull request #86 from bunkerity/dependabot/docker/coraza/api/de…
TheophileDiot Jul 8, 2024
32a804b
deps/gha: bump github/codeql-action from 3.25.11 to 3.25.12
dependabot[bot] Jul 15, 2024
111a4a7
update default value of CROWDSEC_APPSEC_URL, update BW tags to 1.5.9 …
fl0ppy-d1sk Jul 15, 2024
63c5e3c
ci/cd - add missing copy of appsec.yaml file
fl0ppy-d1sk Jul 15, 2024
fbd6e43
Merge pull request #88 from bunkerity/dependabot/github_actions/dev/g…
fl0ppy-d1sk Jul 15, 2024
ce19fb1
ci/cd - update appsec to listen on all IPs
fl0ppy-d1sk Jul 15, 2024
580252f
Merge branch 'dev' of github.com:bunkerity/bunkerweb-plugins into dev
fl0ppy-d1sk Jul 15, 2024
7e5bc4d
cs - remove crs rules
fl0ppy-d1sk Jul 15, 2024
2a6cc19
prepare for BW 1.5.9
fl0ppy-d1sk Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
language: ["python", "go"]
steps:
- name: Checkout repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize CodeQL
uses: github/codeql-action/init@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4
uses: github/codeql-action/init@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4
uses: github/codeql-action/analyze@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12
with:
category: "/language:${{matrix.language}}"
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Get BW tag
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ] ; then
echo "BW_TAG=1.5.7" >> $GITHUB_ENV
echo "BW_TAG=1.5.9" >> $GITHUB_ENV
else
echo "BW_TAG=dev" >> $GITHUB_ENV
fi

- name: Login to Docker Hub
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
Expand All @@ -47,12 +47,15 @@ jobs:

- name: Run CrowdSec stream tests
run: ./.tests/crowdsec.sh stream

- name: Run CrowdSec appsec tests
run: ./.tests/crowdsec.sh appsec

- name: Run VirusTotal tests
run: ./.tests/virustotal.sh
env:
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}

- name: Build and push APIs
if: env.BW_TAG == '1.5.7'
if: env.BW_TAG == '1.5.9'
run: ./.tests/build-push.sh "${{ env.BW_TAG }}"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*.zip
env
node_modules
style.css
style.css
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exclude: (^coraza/api/coreruleset|(^LICENSE.md|.svg)$)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -12,7 +12,7 @@ repos:
- id: check-case-conflict

- repo: https://github.com/ambv/black
rev: e026c93888f91a47a9c9f4e029f3eb07d96375e6 # frozen: 24.1.1
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
hooks:
- id: black
name: Black Python Formatter
Expand All @@ -31,34 +31,34 @@ repos:
exclude: ^crowdsec/lib/

- repo: https://github.com/lunarmodules/luacheck
rev: 418f48976c73be697fe64b0eba9ea9821ac9bca8 # frozen: v1.1.2
rev: cc089e3f65acdd1ef8716cc73a3eca24a6b845e4 # frozen: v1.2.0
hooks:
- id: luacheck
exclude: ^crowdsec/lib/
args: ["--std", "min", "--codes", "--ranges", "--no-cache"]

- repo: https://github.com/pycqa/flake8
rev: 7d37d9032d0d161634be4554273c30efd4dea0b3 # frozen: 7.0.0
rev: 1978e2b0de6efa0cb2a2b6f3f7986aa6569dd2be # frozen: 7.1.0
hooks:
- id: flake8
name: Flake8 Python Linter
args: ["--max-line-length=250", "--ignore=E266,E402,E722,W503"]

- repo: https://github.com/codespell-project/codespell
rev: 6e41aba91fb32e9feb741a6258eefeb9c6e4a482 # frozen: v2.2.6
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
hooks:
- id: codespell
name: Codespell Spell Checker
entry: codespell --ignore-regex="(tabEl|Widgits)" --skip src/ui/static/js/utils/flatpickr.js,CHANGELOG.md
entry: codespell --ignore-regex="(tabEl|Widgits)" --skip */ui/template.html,src/ui/static/js/utils/flatpickr.js,CHANGELOG.md
language: python
types: [text]

- repo: https://github.com/gitleaks/gitleaks
rev: 145400593c178304246371bc45290588bc72f43e # frozen: v8.18.2
rev: 77c3c6a34b2577d71083442326c60b8fd58926ec # frozen: v8.18.4
hooks:
- id: gitleaks

- repo: https://github.com/koalaman/shellcheck-precommit
rev: 3f77b826548d8dc2d26675f077361c92773b50a7 # frozen: v0.9.0
rev: 2491238703a5d3415bb2b7ff11388bf775372f29 # frozen: v0.10.0
hooks:
- id: shellcheck
4 changes: 2 additions & 2 deletions .tests/clamav/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.8
ports:
- 80:8080
- 443:8443
Expand All @@ -27,7 +27,7 @@ services:
- bw-services

bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.7
image: bunkerity/bunkerweb-scheduler:1.5.8
depends_on:
- bunkerweb
- bw-docker
Expand Down
1 change: 1 addition & 0 deletions .tests/coraza.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# shellcheck disable=SC1091
. .tests/utils.sh

echo "ℹ️ Starting Coraza tests ..."
Expand Down
4 changes: 2 additions & 2 deletions .tests/coraza/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.8
ports:
- 80:8080
- 443:8443
Expand All @@ -26,7 +26,7 @@ services:
- bw-services

bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.7
image: bunkerity/bunkerweb-scheduler:1.5.8
depends_on:
- bunkerweb
- bw-docker
Expand Down
49 changes: 33 additions & 16 deletions .tests/crowdsec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ do_and_check_cmd cp .tests/crowdsec/docker-compose.yml /tmp/bunkerweb-plugins/cr
# Edit compose
do_and_check_cmd sed -i "s@bunkerity/bunkerweb:.*\$@bunkerweb:tests@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
do_and_check_cmd sed -i "s@bunkerity/bunkerweb-scheduler:.*\$@bunkerweb-scheduler:tests@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
do_and_check_cmd sed -i "s@CROWDSEC_MODE=.*\$@CROWDSEC_MODE=$1@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
if [ $1 == "appsec" ] ; then
do_and_check_cmd sed -i "s@CROWDSEC_MODE=.*\$@CROWDSEC_MODE=live@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
do_and_check_cmd sed -i "s@CROWDSEC_APPSEC_URL=.*\$@CROWDSEC_APPSEC_URL=http://crowdsec:7422@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
else
do_and_check_cmd sed -i "s@CROWDSEC_MODE=.*\$@CROWDSEC_MODE=$1@g" /tmp/bunkerweb-plugins/crowdsec/docker-compose.yml
fi

# Copy configs
do_and_check_cmd cp .tests/crowdsec/acquis.yaml /tmp/bunkerweb-plugins/crowdsec
do_and_check_cmd cp .tests/crowdsec/appsec.yaml /tmp/bunkerweb-plugins/crowdsec
do_and_check_cmd cp .tests/crowdsec/syslog-ng.conf /tmp/bunkerweb-plugins/crowdsec

# Do the tests
Expand Down Expand Up @@ -58,23 +64,34 @@ if [ "$success" == "ko" ] ; then
exit 1
fi

# Run basic attack with dirb
echo "ℹ️ Executing dirb ..."
do_and_check_cmd sudo apt install -y dirb
dirb http://localhost -H "Host: www.example.com" -H "User-Agent: LegitOne" -f > /dev/null 2>&1
if [ "$1" != "appsec" ] ; then
# Run basic attack with dirb
echo "ℹ️ Executing dirb ..."
do_and_check_cmd sudo apt install -y dirb
dirb http://localhost -H "Host: www.example.com" -H "User-Agent: LegitOne" -f > /dev/null 2>&1

# Wait if are in stream mode
if [ "$1" == "stream" ] ; then
sleep 20
fi
# Wait if are in stream mode
if [ "$1" == "stream" ] ; then
sleep 20
fi

# Expect a 403
echo "ℹ️ Checking CS ..."
success="ko"
ret="$(curl -s -o /dev/null -w "%{http_code}" -H "Host: www.example.com" http://localhost)"
# shellcheck disable=SC2181
if [ $? -eq 0 ] && [ "$ret" -eq 403 ] ; then
success="ok"
# Expect a 403
echo "ℹ️ Checking CS ..."
success="ko"
ret="$(curl -s -o /dev/null -w "%{http_code}" -H "Host: www.example.com" http://localhost)"
# shellcheck disable=SC2181
if [ $? -eq 0 ] && [ "$ret" -eq 403 ] ; then
success="ok"
fi
else
# Send a malicious pattern
echo "ℹ️ Sending malicious pattern"
success="ko"
ret="$(curl -s -o /dev/null -w "%{http_code}" -H "Host: www.example.com" http://localhost/rpc2)"
# shellcheck disable=SC2181
if [ $? -eq 0 ] && [ "$ret" -eq 403 ] ; then
success="ok"
fi
fi

# We're done
Expand Down
5 changes: 5 additions & 0 deletions .tests/crowdsec/appsec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
appsec_config: crowdsecurity/appsec-default
labels:
type: appsec
listen_addr: 0.0.0.0:7422
source: appsec
8 changes: 5 additions & 3 deletions .tests/crowdsec/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.8
ports:
- 80:8080
- 443:8443
Expand All @@ -15,6 +15,7 @@ services:
- CROWDSEC_API=http://crowdsec:8080
- CROWDSEC_API_KEY=s3cr3tb0unc3rk3y
- CROWDSEC_MODE=
- CROWDSEC_APPSEC_URL=
- LOG_LEVEL=info
- USE_MODSECURITY=no
- USE_BLACKLIST=no
Expand All @@ -34,7 +35,7 @@ services:
syslog-address: "udp://10.10.10.254:514"

bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.7
image: bunkerity/bunkerweb-scheduler:1.5.8
depends_on:
- bunkerweb
- bw-docker
Expand All @@ -61,10 +62,11 @@ services:
volumes:
- cs-data:/var/lib/crowdsec/data
- ./acquis.yaml:/etc/crowdsec/acquis.yaml
- ./appsec.yaml:/etc/crowdsec/acquis.d/appsec.yaml
- bw-logs:/var/log:ro
environment:
- BOUNCER_KEY_bunkerweb=s3cr3tb0unc3rk3y
- COLLECTIONS=crowdsecurity/nginx
- COLLECTIONS=crowdsecurity/nginx crowdsecurity/appsec-virtual-patching crowdsecurity/appsec-generic-rules crowdsecurity/appsec-crs
- DISABLE_PARSERS=crowdsecurity/whitelists
networks:
- bw-universe
Expand Down
1 change: 1 addition & 0 deletions .tests/virustotal.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# shellcheck disable=SC1091
. .tests/utils.sh

echo "ℹ️ Starting VirusTotal tests ..."
Expand Down
4 changes: 2 additions & 2 deletions .tests/virustotal/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.8
ports:
- 80:8080
- 443:8443
Expand All @@ -28,7 +28,7 @@ services:
- bw-services

bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.7
image: bunkerity/bunkerweb-scheduler:1.5.8
depends_on:
- bunkerweb
- bw-docker
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/bunkerweb-1.5.7-blue" />
<img src="https://img.shields.io/badge/bunkerweb_plugins-1.6-blue" />
<img src="https://img.shields.io/github/last-commit/bunkerity/bunkerweb-plugins" />
<img src="https://img.shields.io/github/actions/workflow/status/bunkerity/bunkerweb-plugins/tests.yml?branch=dev&label=CI%2FCD%20dev" />
<img src="https://img.shields.io/github/actions/workflow/status/bunkerity/bunkerweb-plugins/tests.yml?branch=main&label=CI%2FCD%20main" />
<img src="https://img.shields.io/github/issues/bunkerity/bunkerweb-plugins">
<img src="https://img.shields.io/github/issues-pr/bunkerity/bunkerweb-plugins">
</p>

This repository contains "official" plugins for the [BunkerWeb solution](https://github.com/bunkerity/bunkerweb). If you don't already know BunkerWeb, you should first read the [documentation](https://docs.bunkerweb.io).
This repository contains "official" plugins for the [BunkerWeb solution](https://github.com/bunkerity/bunkerweb). If you don't already know BunkerWeb, you should first read the [documentation](https://docs.bunkerweb.io/?utm_campaign=self&utm_source=github).

# Prerequisites

The installation of external plugins is covered in the [plugins section](https://docs.bunkerweb.io/latest/plugins) of the documentation.
The installation of external plugins is covered in the [plugins section](https://docs.bunkerweb.io/latest/plugins/?utm_campaign=self&utm_source=github) of the documentation.

# Plugins

Expand Down Expand Up @@ -46,7 +46,7 @@ Please contact us at contact \[@\] bunkerity.com if you are interested.

To get free community support you can use the following media :

- The #help channel of BunkerWeb in the [Discord server](https://discord.com/invite/fTf46FmtyD)
- The #help channel of BunkerWeb in the [Discord server](https://bunkerity.discord.com/?utm_campaign=self&utm_source=github)
- The help category of [GitHub discussions](https://github.com/bunkerity/bunkerweb-plugins/discussions)
- The [/r/BunkerWeb](https://www.reddit.com/r/BunkerWeb) subreddit
- The [Server Fault](https://serverfault.com/) and [Super User](https://superuser.com/) forums
Expand Down
22 changes: 11 additions & 11 deletions clamav/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img alt="BunkerWeb ClamAV diagram" src="https://github.com/bunkerity/bunkerweb-plugins/raw/main/clamav/docs/diagram.svg" />
</p>

This [BunkerWeb](https://www.bunkerweb.io) plugin will automatically check if any uploaded file is detected by the ClamAV antivirus engine and deny the request if that's the case.
This [BunkerWeb](https://www.bunkerweb.io/?utm_campaign=self&utm_source=github) plugin will automatically check if any uploaded file is detected by the ClamAV antivirus engine and deny the request if that's the case.

# Table of contents

Expand All @@ -20,11 +20,11 @@ This [BunkerWeb](https://www.bunkerweb.io) plugin will automatically check if an

# Prerequisites

Please read the [plugins section](https://docs.bunkerweb.io/latest/plugins) of the BunkerWeb documentation first.
Please read the [plugins section](https://docs.bunkerweb.io/latest/plugins/?utm_campaign=self&utm_source=github) of the BunkerWeb documentation first.

# Setup

See the [plugins section](https://docs.bunkerweb.io/latest/plugins) of the BunkerWeb documentation for the installation procedure depending on your integration.
See the [plugins section](https://docs.bunkerweb.io/latest/plugins/?utm_campaign=self&utm_source=github) of the BunkerWeb documentation for the installation procedure depending on your integration.

## Docker

Expand All @@ -34,7 +34,7 @@ version: '3'
services:

bunkerweb:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.9
...
environment:
- USE_CLAMAV=yes
Expand All @@ -59,7 +59,7 @@ version: '3'
services:

mybunker:
image: bunkerity/bunkerweb:1.5.7
image: bunkerity/bunkerweb:1.5.9
...
environment:
- USE_CLAMAV=yes
Expand Down Expand Up @@ -132,12 +132,12 @@ metadata:

# Settings

| Setting |Default | Context |Multiple| Description |
|----------------|--------|---------|--------|-------------------------------------------------------|
|`USE_CLAMAV` |`no` |multisite|no |Activate automatic scan of uploaded files with ClamAV. |
|`CLAMAV_HOST` |`clamav`|global |no |ClamAV hostname or IP address. |
|`CLAMAV_PORT` |`3310` |global |no |ClamAV port. |
|`CLAMAV_TIMEOUT`|`1000` |global |no |Network timeout (in ms) when communicating with ClamAV.|
| Setting | Default | Context | Multiple | Description |
| ---------------- | -------- | --------- | -------- | ------------------------------------------------------- |
| `USE_CLAMAV` | `no` | multisite | no | Activate automatic scan of uploaded files with ClamAV. |
| `CLAMAV_HOST` | `clamav` | global | no | ClamAV hostname or IP address. |
| `CLAMAV_PORT` | `3310` | global | no | ClamAV port. |
| `CLAMAV_TIMEOUT` | `1000` | global | no | Network timeout (in ms) when communicating with ClamAV. |

# TODO

Expand Down
Loading