I see your point, I've moved the definition to nginx-cloudflare.conf.
Currently this breaks ngnix if you have cloudflare data inside /etc/nginx/
nginx-includes.conf (not sure if this was explicitly customized, probably did this a while back)
If you have 'webserver=nginx_apache' in your custombuild/options.conf and run
./build update_versions; ./build rewrite_confs
This will create
/etc/nginx/
nginx-cloudflare.conf
Which is almost identical to the existing file:
/etc/nginx/
nginx-includes.conf
So we have 2 nearly identical files, however, the important difference here is that
/etc/nginx/nginx-includes.conf has:
real_ip_header CF-Connecting-IP;
While /etc/nginx/nginx-cloudflare.conf has:
real_ip_header X-Forwarded-For;
Having both of these will prevent ngnix from running...
The fix is to remove the cloudflare data from /etc/nginx/nginx-includes.conf (since as you noted, custombuild will be using /etc/nginx/nginx-includes.conf for cloudflare data).
Having both of these will prevent ngnix from running...
The fix is to remove the cloudflare data from /etc/nginx/nginx-includes.conf (since as you noted, custombuild will be using /etc/nginx/nginx-includes.conf for cloudflare data).