From 509b56296cad265862e044fde35c5436d66e5fed Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Mon, 28 Aug 2017 09:38:54 +0200 Subject: [PATCH] Reject conntions not using correct hostname (#175) * Reject conntions not using correct hostname * Change to new network layer * Pump version --- nginx_proxy/config.json | 2 +- nginx_proxy/nginx.conf | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nginx_proxy/config.json b/nginx_proxy/config.json index 63a7cef..24cd934 100644 --- a/nginx_proxy/config.json +++ b/nginx_proxy/config.json @@ -1,6 +1,6 @@ { "name": "NGINX Home Assistant SSL proxy", - "version": "0.5", + "version": "0.6", "slug": "nginx_proxy", "description": "An SSL/TLS proxy", "url": "https://home-assistant.io/addons/nginx_proxy/", diff --git a/nginx_proxy/nginx.conf b/nginx_proxy/nginx.conf index fccc5bc..bd9be90 100644 --- a/nginx_proxy/nginx.conf +++ b/nginx_proxy/nginx.conf @@ -12,6 +12,10 @@ http { '' close; } + server { + return 444; + } + server { server_name %%DOMAIN%%; @@ -40,7 +44,7 @@ http { proxy_buffering off; location / { - proxy_pass http://172.17.0.1:8123; + proxy_pass http://homeassistant:8123; proxy_set_header Host $host; proxy_redirect http:// https://; proxy_http_version 1.1;