nginx.conf 1.2 KB

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