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.

61 lines
1.3 KiB

5 years ago
  1. user nginx;
  2. worker_processes 1;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. events {
  6. use epoll;
  7. worker_connections 51200;
  8. multi_accept on;
  9. }
  10. http {
  11. include /etc/nginx/mime.types;
  12. default_type application/octet-stream;
  13. server_names_hash_bucket_size 128;
  14. client_header_buffer_size 32k;
  15. large_client_header_buffers 4 32k;
  16. client_max_body_size 50m;
  17. sendfile on;
  18. tcp_nopush on;
  19. keepalive_timeout 60;
  20. tcp_nodelay on;
  21. fastcgi_connect_timeout 300;
  22. fastcgi_send_timeout 300;
  23. fastcgi_read_timeout 300;
  24. fastcgi_buffer_size 64k;
  25. fastcgi_buffers 4 64k;
  26. fastcgi_busy_buffers_size 128k;
  27. fastcgi_temp_file_write_size 256k;
  28. gzip on;
  29. gzip_min_length 1k;
  30. gzip_buffers 4 16k;
  31. gzip_http_version 1.1;
  32. gzip_comp_level 2;
  33. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
  34. gzip_vary on;
  35. gzip_proxied expired no-cache no-store private auth;
  36. gzip_disable "MSIE [1-6]\.";
  37. server_tokens off;
  38. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  39. '$status $body_bytes_sent "$http_referer" '
  40. '"$http_user_agent" "$http_x_forwarded_for"';
  41. access_log /var/log/nginx/access.log main;
  42. include /etc/nginx/vhost/*.conf;
  43. }