Posted by superfedya on September 24, 2014 at 12:21am
Hi,
I installed Nginx with ngx_cache_purge module. I want to use it with this module: https://www.drupal.org/project/purge
http://labs.frickle.com/nginx_ngx_cache_purge/
Somebody know where I need put:
proxy_cache_path /tmp/cache keys_zone=tmpcache:10m;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_cache tmpcache;
proxy_cache_key $uri$is_args$args;
proxy_cache_purge PURGE from 127.0.0.1;
}I found proxy_cache_path in fastcgi_microcache_zone.conf - /var/cache/nginx/microcache.
And about CloudFlare.
I need to add in nginx.conf those lines:
# Cloudflare
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
real_ip_header CF-Connecting-IP;But what to do with the lines that already there?
set_real_ip_from 0.0.0.0/32; # all addresses get a real IP.
real_ip_header X-Forwarded-For; # the ip is forwarded from the load balancer/proxyI need to remove them? Or what else?
Thanks! I hope somebody will help me with that.

Comments
In Perusio D6 config there is
In Perusio D6 config there is already declared keys_zone=microcache.
I guess this module need a special configuration for Perusio config.
Can I use this config with
Can I use this config with Perusio's one?
https://github.com/omega8cc/boa/blob/master/aegir/conf/nginx_speed_purge...