From 31a18fa40df13ed54c2d362522ec37462352a9fe Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 7 Nov 2012 20:57:44 +0000 Subject: [PATCH] Server: Custom x-forward-for HTTP header --- config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.js b/config.js index 6837641..ebc83bc 100644 --- a/config.js +++ b/config.js @@ -78,6 +78,9 @@ conf.reject_unauthorised_certificates = false; // Whitelisted HTTP proxies conf.http_proxies = ["127.0.0.1"]; +// Header that contains the real-ip from the HTTP proxy +conf.http_proxy_ip_header = "x-forwarded-for"; + // Enabled transports for the client to use conf.transports = [ "websocket", -- 2.25.1