mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 17:01:43 +01:00
5e5b9f2205
* Hass.io ingress * Update * Remove global vars * Fix * Fixes * Fixes * Upgrade base image to 1.5.1 * Lint
16 lines
No EOL
394 B
Text
16 lines
No EOL
394 B
Text
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 / {
|
|
# Only allow from Hass.io supervisor
|
|
allow 172.30.32.2;
|
|
deny all;
|
|
|
|
proxy_pass http://esphome;
|
|
}
|
|
} |