mirror of
https://github.com/esphome/esphome.git
synced 2024-12-30 17:31:43 +01:00
5e5b9f2205
* Hass.io ingress * Update * Remove global vars * Fix * Fixes * Fixes * Upgrade base image to 1.5.1 * Lint
33 lines
636 B
Nginx Configuration File
Executable file
33 lines
636 B
Nginx Configuration File
Executable file
daemon off;
|
|
user root;
|
|
pid /var/run/nginx.pid;
|
|
worker_processes 1;
|
|
# Hass.io addon log
|
|
error_log /proc/1/fd/1 error;
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/includes/mime.types;
|
|
access_log stdout;
|
|
default_type application/octet-stream;
|
|
gzip on;
|
|
keepalive_timeout 65;
|
|
sendfile on;
|
|
server_tokens off;
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
# Use Hass.io supervisor as resolver
|
|
resolver 172.30.32.2;
|
|
|
|
upstream esphome {
|
|
server unix:/var/run/esphome.sock;
|
|
}
|
|
|
|
include /etc/nginx/servers/*.conf;
|
|
}
|