You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.8 KiB

7 months ago
  1. user nginx;
  2. worker_processes auto;
  3. worker_rlimit_nofile 51200;
  4. load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;
  5. load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so;
  6. events
  7. {
  8. use epoll;
  9. worker_connections 51200;
  10. multi_accept on;
  11. }
  12. error_log /var/log/nginx/error.log notice;
  13. pid /var/run/nginx.pid;
  14. http {
  15. include /etc/nginx/mime.types;
  16. default_type application/octet-stream;
  17. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  18. '$status $body_bytes_sent "$http_referer" '
  19. '"$http_user_agent" "$http_x_forwarded_for"';
  20. access_log /var/log/nginx/access.log main;
  21. sendfile on;
  22. tcp_nodelay on;
  23. tcp_nopush off;
  24. proxy_buffering off;
  25. keepalive_timeout 300;
  26. fastcgi_intercept_errors on;
  27. fastcgi_connect_timeout 300;
  28. fastcgi_send_timeout 300;
  29. fastcgi_read_timeout 300;
  30. fastcgi_buffer_size 256k;
  31. fastcgi_buffers 64 32k;
  32. fastcgi_busy_buffers_size 256k;
  33. fastcgi_temp_file_write_size 512k;
  34. max_ranges 1;
  35. gzip on;
  36. gzip_min_length 1k;
  37. gzip_buffers 4 16k;
  38. gzip_http_version 1.1;
  39. gzip_comp_level 4;
  40. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
  41. gzip_vary on;
  42. gzip_proxied expired no-cache no-store private auth;
  43. gzip_disable "MSIE [1-6]\.";
  44. brotli on;
  45. brotli_comp_level 6;
  46. brotli_buffers 16 8k;
  47. brotli_min_length 20;
  48. brotli_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
  49. include conf.d/*.conf;
  50. }