2019-04-24 17:08:05 +02:00
|
|
|
server {
|
2023-01-26 17:48:04 +01:00
|
|
|
listen 127.0.0.1:{{ .port }} default_server;
|
2023-01-18 19:54:27 +01:00
|
|
|
listen {{ .interface }}:{{ .port }} default_server;
|
2019-04-24 17:08:05 +02:00
|
|
|
|
|
|
|
include /etc/nginx/includes/server_params.conf;
|
|
|
|
include /etc/nginx/includes/proxy_params.conf;
|
2023-01-18 19:54:27 +01:00
|
|
|
|
2022-02-09 11:46:20 +01:00
|
|
|
# Set Home Assistant Ingress header
|
|
|
|
proxy_set_header X-HA-Ingress "YES";
|
2019-04-24 17:08:05 +02:00
|
|
|
|
|
|
|
location / {
|
|
|
|
allow 172.30.32.2;
|
2023-01-26 17:48:04 +01:00
|
|
|
allow 127.0.0.1;
|
2019-04-24 17:08:05 +02:00
|
|
|
deny all;
|
|
|
|
|
|
|
|
proxy_pass http://esphome;
|
|
|
|
}
|
2019-05-11 15:12:30 +02:00
|
|
|
}
|