mirror of
https://github.com/esphome/esphome.git
synced 2024-12-11 14:49:20 +01:00
17 lines
401 B
Plaintext
17 lines
401 B
Plaintext
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 / {
|
|
# Only allow from Hass.io supervisor
|
|
allow 172.30.32.2;
|
|
deny all;
|
|
|
|
proxy_pass http://esphome;
|
|
}
|
|
}
|