/nginx

A collection of scripts for automating various tasks with Nginx

Primary LanguageShellApache License 2.0Apache-2.0

nginx

A collection of scripts for automating various tasks with Nginx

Build Status

  • add-cidr.sh Add CIDR notation to any IPs missing /32 /24 or /14 CIDR notation
  • nginx-allowlist-generator.sh Read from the list of IPs (non CIDR notation) in the file allowlist and generate the Nginx allow conf
  • nginx-denylist-generator.sh Read from the list of CIDRs in the file blacklist and generate the Nginx deny conf
  • nginx-realip.conf Config to be added to Nginx to get the real IP from an AWS ELB
  • nginx-realip.sh Reconfigures Nginx to log traffic using the real client IP address specified in the X-Forwarded-For header added by an AWS ELB
  • nginx-referrers.sh Quickly list unique referrer URLs from Nginx access log
  • nginxdenylist.conf Nginx deny conf based on iptables/blacklist
  • ssl-gen.sh Generate SHA-256 self-signed SSL certificate