aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-16 08:56:31 +0800
committerAaron LI <aly@aaronly.me>2017-06-16 08:56:31 +0800
commit3163245ed8a159680880ae9e31209521a0f89517 (patch)
tree3b45a880b6ee028bc10bdbcb50f3f3f60d03ba0d
parent30e040eab1abeb078377f973fc5b9651516667a9 (diff)
downloaddebian-hpc-3163245ed8a159680880ae9e31209521a0f89517.tar.bz2
nginx: Only listen on LAN interface/ip
-rw-r--r--roles/nginx/templates/nodes.site.j23
1 files changed, 1 insertions, 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;