Skip to content

Commit 5beb4ff

Browse files
authored
Merge pull request #223 from millerthegorilla/unauthorized-log-patch-1
Update 50-config create fail2ban unauthorized.log
2 parents cf8cfd4 + 9821740 commit 5beb4ff

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ app_setup_nginx_reverse_proxy_block: ""
154154

155155
# changelog
156156
changelogs:
157+
- { date: "28.03.22:", desc: "created a logfile for fail2ban nginx-unauthorized in /etc/cont-init.d/50-config" }
157158
- { date: "09.01.22:", desc: "Added a fail2ban jail for nginx unauthorized" }
158159
- { date: "21.12.21:", desc: "Fixed issue with iptables not working as expected" }
159160
- { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" }

root/etc/cont-init.d/50-config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ fi
366366
touch /config/log/nginx/error.log
367367
[[ ! -f /config/log/nginx/access.log ]] && \
368368
touch /config/log/nginx/access.log
369+
[[ ! -f /config/log/nginx/unauthorized.log ]] && \
370+
touch /config/log/nginx/unauthorized.log
369371

370372
# permissions
371373
chown -R abc:abc \

0 commit comments

Comments
 (0)