plugins - clamav example
This commit is contained in:
parent
388fc1a0e8
commit
8295f6aeba
|
@ -0,0 +1,46 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
mywww:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
restart: always
|
||||
ports:
|
||||
- 80:8080
|
||||
- 443:8443
|
||||
# bunkerized-nginx runs as an unprivileged user with UID/GID 101
|
||||
# don't forget to edit the permissions of the files and folders accordingly
|
||||
volumes:
|
||||
- ./web-files:/www:ro
|
||||
- ./letsencrypt:/etc/letsencrypt
|
||||
- ./bunkerized-nginx-clamav:/plugins/clamav:ro # you will need to download the plugin see download-plugin.sh
|
||||
environment:
|
||||
- SERVER_NAME=www.website.com # replace with your domain
|
||||
- AUTO_LETS_ENCRYPT=yes
|
||||
- REDIRECT_HTTP_TO_HTTPS=yes
|
||||
- DISABLE_DEFAULT_SERVER=yes
|
||||
- USE_CLIENT_CACHE=yes
|
||||
- USE_GZIP=yes
|
||||
- REMOTE_PHP=myphp
|
||||
- REMOTE_PHP_PATH=/app
|
||||
|
||||
clamav-server:
|
||||
image: mkodockx/docker-clamav:alpine-idb-amd64
|
||||
|
||||
clamav-rest-api:
|
||||
image: benzino77/clamav-rest-api
|
||||
ports:
|
||||
- 8080:8080
|
||||
depends_on:
|
||||
- clamav-server
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- CLAMD_IP=clamav-server
|
||||
- APP_PORT=8080
|
||||
- APP_FORM_KEY=FILES
|
||||
|
||||
myphp:
|
||||
image: php:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web-files:/app
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
git clone https://github.com/bunkerity/bunkerized-nginx-clamav.git
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
if (file_exists($_FILES['myfile']['tmp_name']) && is_uploaded_file($_FILES['myfile']['tmp_name'])) {
|
||||
echo 'File is clean !';
|
||||
}
|
||||
?>
|
||||
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
Select file to scan :
|
||||
<input type="file" name="myfile">
|
||||
<input type="submit" value="Scan file" name="submit">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue