nginx.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Please consider creating files in /etc/nginx/conf.d/ instead of editing this.
  2. # For details see https://openwrt.org/docs/guide-user/services/webserver/nginx
  3. user root;
  4. error_log /var/nginx_error.log crit; #notice info
  5. events {}
  6. http {
  7. access_log off;
  8. log_format openwrt
  9. '$request_method $scheme://$host$request_uri => $status'
  10. ' (${body_bytes_sent}B in ${request_time}s) <- $http_referer';
  11. include mime.types;
  12. default_type application/octet-stream;
  13. sendfile on;
  14. sendfile_max_chunk 512k;
  15. tcp_nopush on;
  16. server_names_hash_bucket_size 128;
  17. client_header_buffer_size 32k;
  18. large_client_header_buffers 4 32k;
  19. client_max_body_size 200m;
  20. keepalive_timeout 60;
  21. tcp_nodelay on;
  22. gzip on;
  23. gzip_min_length 1k;
  24. gzip_buffers 4 16k;
  25. gzip_http_version 1.1;
  26. gzip_comp_level 2;
  27. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
  28. gzip_vary on;
  29. gzip_proxied expired no-cache no-store private auth;
  30. gzip_disable "MSIE [1-6]\.";
  31. include conf.d/*.conf;
  32. }