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

34 lines
636 B
Nginx Configuration File
Raw Normal View History

2019-04-24 17:09:50 +02:00
daemon off;
user root;
2019-02-13 22:05:11 +01:00
pid /var/run/nginx.pid;
2019-04-24 17:09:50 +02:00
worker_processes 1;
# Hass.io addon log
error_log /proc/1/fd/1 error;
2019-02-13 22:05:11 +01:00
events {
2019-04-24 17:09:50 +02:00
worker_connections 1024;
2019-02-13 22:05:11 +01:00
}
http {
2019-04-24 17:09:50 +02:00
include /etc/nginx/includes/mime.types;
access_log stdout;
default_type application/octet-stream;
gzip on;
keepalive_timeout 65;
sendfile on;
server_tokens off;
2019-02-13 22:05:11 +01:00
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
2019-04-24 17:09:50 +02:00
# Use Hass.io supervisor as resolver
resolver 172.30.32.2;
2019-02-13 22:05:11 +01:00
2019-04-24 17:09:50 +02:00
upstream esphome {
server unix:/var/run/esphome.sock;
2019-02-13 22:05:11 +01:00
}
2019-04-24 17:09:50 +02:00
include /etc/nginx/servers/*.conf;
2019-02-13 22:05:11 +01:00
}