From: Mooash Date: Thu, 15 Oct 2015 11:30:53 +0000 (+1100) Subject: If sockets are being used trust the real_ip header sent form connections to it by... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81c17556cf764f1f4746d36a5d2493f77b1d77d2;p=discourse_docker.git If sockets are being used trust the real_ip header sent form connections to it by default --- diff --git a/templates/web.socketed.template.yml b/templates/web.socketed.template.yml index b8c615f..75808b9 100644 --- a/templates/web.socketed.template.yml +++ b/templates/web.socketed.template.yml @@ -16,8 +16,10 @@ run: from: /listen 80;/ to: | listen unix:/shared/nginx.http.sock; + set_real_ip_from unix:; - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: /listen 443 ssl spdy;/ to: | listen unix:/shared/nginx.https.sock ssl spdy; + set_real_ip_from unix:;