mirror of
				https://github.com/linuxserver/docker-swag.git
				synced 2025-11-01 05:27:42 +09:00 
			
		
		
		
	Merge pull request #223 from millerthegorilla/unauthorized-log-patch-1
Update 50-config create fail2ban unauthorized.log
This commit is contained in:
		| @@ -154,6 +154,7 @@ app_setup_nginx_reverse_proxy_block: "" | |||||||
|  |  | ||||||
| # changelog | # changelog | ||||||
| changelogs: | changelogs: | ||||||
|  |   - { date: "28.03.22:", desc: "created a logfile for fail2ban nginx-unauthorized in /etc/cont-init.d/50-config" } | ||||||
|   - { date: "09.01.22:", desc: "Added a fail2ban jail for nginx unauthorized" } |   - { date: "09.01.22:", desc: "Added a fail2ban jail for nginx unauthorized" } | ||||||
|   - { date: "21.12.21:", desc: "Fixed issue with iptables not working as expected" } |   - { date: "21.12.21:", desc: "Fixed issue with iptables not working as expected" } | ||||||
|   - { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" } |   - { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" } | ||||||
|   | |||||||
| @@ -366,6 +366,8 @@ fi | |||||||
|     touch /config/log/nginx/error.log |     touch /config/log/nginx/error.log | ||||||
| [[ ! -f /config/log/nginx/access.log ]] && \ | [[ ! -f /config/log/nginx/access.log ]] && \ | ||||||
|     touch /config/log/nginx/access.log |     touch /config/log/nginx/access.log | ||||||
|  | [[ ! -f /config/log/nginx/unauthorized.log ]] && \ | ||||||
|  |     touch /config/log/nginx/unauthorized.log | ||||||
|  |  | ||||||
| # permissions | # permissions | ||||||
| chown -R abc:abc \ | chown -R abc:abc \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user