b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # Consider using UCI or creating files in /etc/nginx/conf.d/ for configuration. |
| 2 | # Parsing UCI configuration is skipped if uci set nginx.global.uci_enable=false |
| 3 | # For details see: https://openwrt.org/docs/guide-user/services/webserver/nginx |
| 4 | |
| 5 | worker_processes auto; |
| 6 | |
| 7 | user root; |
| 8 | |
| 9 | events {} |
| 10 | |
| 11 | http { |
| 12 | access_log off; |
| 13 | log_format openwrt |
| 14 | '$request_method $scheme://$host$request_uri => $status' |
| 15 | ' (${body_bytes_sent}B in ${request_time}s) <- $http_referer'; |
| 16 | |
| 17 | include mime.types; |
| 18 | default_type application/octet-stream; |
| 19 | sendfile on; |
| 20 | |
| 21 | client_max_body_size 128M; |
| 22 | large_client_header_buffers 2 1k; |
| 23 | |
| 24 | gzip on; |
| 25 | gzip_vary on; |
| 26 | gzip_proxied any; |
| 27 | |
| 28 | root /www; |
| 29 | |
| 30 | #UCI_HTTP_CONFIG |
| 31 | include conf.d/*.conf; |
| 32 | } |