Added fail2ban, though not sure its configured correctly yet

This commit is contained in:
Jamie Curnow
2023-03-09 22:11:28 +10:00
parent e959e54dc8
commit 700518a0a2
245 changed files with 9172 additions and 5 deletions

View File

@ -1,4 +1,6 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
echo " Starting backend ..."

View File

@ -0,0 +1,5 @@
#!/command/with-contenv bash
# shellcheck shell=bash
echo " Starting fail2ban ..."
exec /usr/bin/fail2ban-client -c /fail2ban -x -vv -f start

View File

@ -0,0 +1 @@
longrun

View File

@ -1,4 +1,6 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
# This service is DEVELOPMENT only.

View File

@ -1,4 +1,6 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
echo " Starting nginx ..."

View File

@ -1,4 +1,6 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
DATA_PATH=/data
@ -47,6 +49,14 @@ chown -R npmuser:npmuser /var/log/nginx
mkdir -p /tmp/npmuserhome
chown -R npmuser:npmuser /tmp/npmuserhome
# fail2ban configuration
mkdir -p /fail2ban/{action.d,filter.d,jail.d,log}
chown -R npmuser:npmuser /fail2ban
mkdir -p /var/run/fail2ban
mkdir -p /data/logs/fail2ban
chown nobody:nogroup /data/logs/fail2ban
chmod 02755 /data/logs/fail2ban
echo
echo "-------------------------------------
_ _ ____ __ __

View File

@ -1 +1,2 @@
# shellcheck shell=bash
/etc/s6-overlay/s6-rc.d/prepare/script.sh