mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
16 lines
363 B
Groovy
16 lines
363 B
Groovy
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;
|
|
}
|
|
}
|