Reject conntions not using correct hostname (#175)

* Reject conntions not using correct hostname

* Change to new network layer

* Pump version
This commit is contained in:
Daniel Perna
2017-08-28 09:38:54 +02:00
committed by Pascal Vizeli
parent 04ad144450
commit 509b56296c
2 changed files with 6 additions and 2 deletions

View File

@@ -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/",

View File

@@ -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;