From 3163245ed8a159680880ae9e31209521a0f89517 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 16 Jun 2017 08:56:31 +0800 Subject: nginx: Only listen on LAN interface/ip --- roles/nginx/templates/nodes.site.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/nginx/templates/nodes.site.j2 b/roles/nginx/templates/nodes.site.j2 index df6c369..d57c0e2 100644 --- a/roles/nginx/templates/nodes.site.j2 +++ b/roles/nginx/templates/nodes.site.j2 @@ -6,8 +6,7 @@ # server { - listen 80; - listen [::]:80; + listen {{ lan_ip }}:80; access_log /var/log/nginx/nodes.access.log; error_log /var/log/nginx/nodes.error.log; -- cgit v1.2.2