Skip to content

Instantly share code, notes, and snippets.

@briped
briped / nginx-domoticz-jail.conf
Last active September 15, 2017 02:13
Fail2Ban configuration files for Domoticz behind NGINX Reverse Proxy
# Fail2Ban jail configuration file for Domoticz behind NGINX Reverse Proxy.
# nginx-domoticz.conf
#
# The X-Forwarded-For IP isn't logged in the Domoticz log, and so any failed
# attempts will show the NGINX reverse proxy IP rather than the actual IP.
#
# Workaround is to look at all attempts and then set the maxretry number to 5.
# This doesn't protect against distributed attempts.
#
# Author: Brian Schmidt Pedersen
@briped
briped / nginx-plexpy-jail.conf
Last active March 29, 2019 07:36
Fail2Ban configuration files for PlexPy behind NGINX Reverse Proxy Raw
# Fail2Ban jail configuration file for PlexPy behind NGINX Reverse Proxy.
# nginx-plexpy.conf
#
# The X-Forwarded-For IP (or any IP for that matter) isn't logged in the PlexPy
# log, and so any failed attempts cannot be blocked using Fail2Ban.
#
# Workaround is to look at all attempts and then set the maxretry number to 5.
# This doesn't protect against distributed attempts.
#
# Author: Brian Schmidt Pedersen