Enable Real-IP for WP site

How and where do I enable Real-IP for a WP site installed by EasyEngine?
Site is behind CloudFlare.

@lundberg.andreas
Hi,
EasyEngine already have configuration for setting real ip, just uncomment these two line in /etc/nginx/nginx.conf

set_real_ip_from proxy-server-ip;

real_ip_header X-Forwarded-For;

and replace proxy-server-ip with your cloudfare ip
for extra details you can refer

Thanks !
I uncommented real_ip_header X-Forwarded-For; and included a separate file with all the CF ip’s.

I found EasyEnginge great and I’ve got Postfix running with virtual boxes from your other tutorial.
Only problem now I have is that all of a sudden, php5-fpm spikes with CPU usage and I really can’t figure out why.

Think it maybe have something to do with WP caching, but I’m not sure how to debug.

@lundberg.andreas
We can’t really go directly for debug without knowing output for these commands

ee info  
nproc  
free -m

Hello @lundbergandreas,

We haven’t heard back from a long time. It looks like your issue is resolved.

I am closing this support ticket for now. Feel free to create a new support ticket if you have any queries further. :slight_smile: