From 700519ddf27e99ca131fbcd38bbd60d211e771a3 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 23 Jul 2014 21:27:40 -0400 Subject: [PATCH] added new FAQ entry re: Recently Logged IPs, re: https://community.nodebb.org/topic/2062/forwarding-ips-on-nginx-proxy/3, ping @a5mith --- docs/help/help.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/help/help.rst b/docs/help/help.rst index a29d1256de..6062b56a54 100644 --- a/docs/help/help.rst +++ b/docs/help/help.rst @@ -84,6 +84,20 @@ If you are using :doc:`nginx <../configuring/proxies/nginx>` or :doc:`Apache <.. Alternatively, edit the ``config.json`` file using your favourite text editor and change ``use_port`` to ``false``. +The "Recently Logged In IPs" section only shows 127.0.0.1 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +NodeBBs running behind a proxy may have difficulties determining the original IP address that requests come from. It is important that the proxy server provides the referral IP header. + +In nginx, ensure that the following line is present in your ``server`` block: + +.. code:: nginx + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + +In addition, ensure that the `use_port` option is set to `false` in your NodeBB's ``config.json`` + + Submit Bugs on our Issue Tracker --------------------------------