mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Redo docker build system with buildkit+multi-stage and cache pio packages (#2338)
This commit is contained in:
		
							
								
								
									
										33
									
								
								docker/hassio-rootfs/etc/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								docker/hassio-rootfs/etc/nginx/nginx.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| 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; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user