2cc60382-a8e6-4314-99d7-2f8c6cb2678e-image.png
Our forum is randomly throwing this error in case of heavy traffic and when we try to login or visit topic pages. when i open the site in chrome incognito, it works. but not in normal tab.
Not a bug as I cannot recreate this on here, but on two of my nodebb instances the Recently logged IP parameter in the profile page is showing my localhost IP.
Running ubuntu 14.04, nginx 1.6 and my nginx directives are setup correctly. Funnily enough my access log file (generated by nginx) is correctly showing the client IP so it's passing through in the header BUT node bb is not displaying it correctly.
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:4568/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Which module is nodebb is reading the IP in the header? Will have a look.