1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

Refactor NGINX configuration of Home Assistant Add-on (#4312)

This commit is contained in:
Franck Nijhof
2023-01-18 19:54:27 +01:00
committed by GitHub
parent fd6d6cfb6c
commit 84698ae888
10 changed files with 60 additions and 100 deletions

View File

@@ -0,0 +1,16 @@
server {
listen {{ .interface }}:{{ .port }} default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
# Set Home Assistant Ingress header
proxy_set_header X-HA-Ingress "YES";
location / {
allow 172.30.32.2;
deny all;
proxy_pass http://esphome;
}
}