home-assistant-addon/esphome-dev/rootfs/etc/nginx/servers/ingress.conf

17 lines
398 B
Plaintext
Raw Normal View History

2019-04-24 17:09:50 +02:00
server {
listen %%interface%%:%%port%% default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
# Set Hass.io Ingress header
proxy_set_header X-Hassio-Ingress "YES";
location / {
2019-05-15 14:41:44 +02:00
# Only allow from Hass.io supervisor
2019-04-24 17:09:50 +02:00
allow 172.30.32.2;
deny all;
proxy_pass http://esphome;
}
2019-05-15 14:41:44 +02:00
}