blob: 1c611d9ad2e9eaa0f79b8a3afeb0e71dc769a2f1 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001# 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
5worker_processes auto;
6
7user root;
8
9events {}
10
11http {
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}