From 5e0a6d205e85dfd26f40b69be84b14011af431ab Mon Sep 17 00:00:00 2001 From: Melpa Date: Tue, 3 Dec 2013 22:05:52 -0800 Subject: [PATCH] fix nginx config to properly report the remote IP --- etc/nginx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/nginx b/etc/nginx index 3673c39c..ea1a1212 100644 --- a/etc/nginx +++ b/etc/nginx @@ -33,6 +33,8 @@ http { ## access_log /home/melpa/log/melpa.access.log combined; error_log /home/melpa/log/melpa.error.log info; + set_real_ip_from 127.0.0.1; + real_ip_header X-Forwarded-For; ##