mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
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:
committed by
Pascal Vizeli
parent
04ad144450
commit
509b56296c
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NGINX Home Assistant SSL proxy",
|
"name": "NGINX Home Assistant SSL proxy",
|
||||||
"version": "0.5",
|
"version": "0.6",
|
||||||
"slug": "nginx_proxy",
|
"slug": "nginx_proxy",
|
||||||
"description": "An SSL/TLS proxy",
|
"description": "An SSL/TLS proxy",
|
||||||
"url": "https://home-assistant.io/addons/nginx_proxy/",
|
"url": "https://home-assistant.io/addons/nginx_proxy/",
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ http {
|
|||||||
'' close;
|
'' close;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
return 444;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name %%DOMAIN%%;
|
server_name %%DOMAIN%%;
|
||||||
|
|
||||||
@@ -40,7 +44,7 @@ http {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://172.17.0.1:8123;
|
proxy_pass http://homeassistant:8123;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_redirect http:// https://;
|
proxy_redirect http:// https://;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|||||||
Reference in New Issue
Block a user