| 
									
										
										
										
											2024-03-26 14:52:34 +00:00
										 |  |  | # Consider using UCI or creating files in /etc/nginx/conf.d/ for configuration. | 
					
						
							|  |  |  | # Parsing UCI configuration is skipped if uci set nginx.global.uci_enable=false | 
					
						
							|  |  |  | # For details see: https://openwrt.org/docs/guide-user/services/webserver/nginx | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | worker_processes auto; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | user root; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | events {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | http { | 
					
						
							|  |  |  | 	access_log off; | 
					
						
							|  |  |  | 	log_format openwrt | 
					
						
							|  |  |  | 		'$request_method $scheme://$host$request_uri => $status' | 
					
						
							|  |  |  | 		' (${body_bytes_sent}B in ${request_time}s) <- $http_referer'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	include mime.types; | 
					
						
							|  |  |  | 	default_type application/octet-stream; | 
					
						
							|  |  |  | 	sendfile on; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-09 15:27:17 +08:00
										 |  |  |   proxy_request_buffering off;  | 
					
						
							|  |  |  |   proxy_http_version 1.1;  | 
					
						
							|  |  |  |   client_max_body_size 0; | 
					
						
							| 
									
										
										
										
											2024-03-26 14:52:34 +00:00
										 |  |  | 	large_client_header_buffers 4 32k; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	gzip on; | 
					
						
							|  |  |  | 	gzip_vary on; | 
					
						
							|  |  |  | 	gzip_proxied any; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	root /www; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	#UCI_HTTP_CONFIG | 
					
						
							|  |  |  | 	include conf.d/*.conf; | 
					
						
							|  |  |  | } |