Server: Custom x-forward-for HTTP header
authorDarren <darren@darrenwhitlen.com>
Wed, 7 Nov 2012 20:57:44 +0000 (20:57 +0000)
committerDarren <darren@darrenwhitlen.com>
Wed, 7 Nov 2012 20:57:44 +0000 (20:57 +0000)
config.js

index 68376411ae289f6aa4c627b4b89697f6f181a483..ebc83bc22e6ecd190c401456d7365c58dbdfa0b2 100644 (file)
--- 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",