nginx-cloudflare-real-ip

Configure Nginx to restore Visitors real IP under Cloudflare CDN

Features

Requirements

You can check if http_realip_module available with :

nginx -V 2>&1 | grep with-http_realip_module

If the previous command return nothing, http_realip_module isn’t available


Usage

Nginx configuration only

bash <(wget -O - vtb.cx/nginx-cloudflare || curl -sL vtb.cx/nginx-cloudflare)

Nginx configuration + UFW configuration

bash <(wget -O - vtb.cx/nginx-cloudflare || curl -sL vtb.cx/nginx-cloudflare) --ufw

Published & maintained by VirtuBox