mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Added fail2ban, though not sure its configured correctly yet
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "❯ Starting backend ..."
|
||||
|
5
docker/rootfs/etc/s6-overlay/s6-rc.d/fail2ban/run
Executable file
5
docker/rootfs/etc/s6-overlay/s6-rc.d/fail2ban/run
Executable 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
|
1
docker/rootfs/etc/s6-overlay/s6-rc.d/fail2ban/type
Normal file
1
docker/rootfs/etc/s6-overlay/s6-rc.d/fail2ban/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
@ -1,4 +1,6 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -e
|
||||
|
||||
# This service is DEVELOPMENT only.
|
||||
|
@ -1,4 +1,6 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "❯ Starting nginx ..."
|
||||
|
@ -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 "-------------------------------------
|
||||
_ _ ____ __ __
|
||||
|
@ -1 +1,2 @@
|
||||
# shellcheck shell=bash
|
||||
/etc/s6-overlay/s6-rc.d/prepare/script.sh
|
||||
|
Reference in New Issue
Block a user