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.

68 lines
1.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. user nginx;
  2. worker_processes 4;
  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. upstream fastcgi_backend {
  12. server php:9000;
  13. server php:9001;
  14. server php:9002;
  15. }
  16. include /etc/nginx/mime.types;
  17. default_type application/octet-stream;
  18. server_names_hash_bucket_size 128;
  19. client_header_buffer_size 32k;
  20. large_client_header_buffers 4 32k;
  21. client_max_body_size 80m;
  22. sendfile on;
  23. tcp_nopush on;
  24. keepalive_timeout 0;
  25. tcp_nodelay on;
  26. fastcgi_connect_timeout 300;
  27. fastcgi_send_timeout 300;
  28. fastcgi_read_timeout 300;
  29. fastcgi_buffer_size 64k;
  30. fastcgi_buffers 4 64k;
  31. fastcgi_busy_buffers_size 128k;
  32. fastcgi_temp_file_write_size 256k;
  33. gzip on;
  34. gzip_min_length 1k;
  35. gzip_buffers 4 16k;
  36. gzip_http_version 1.1;
  37. gzip_comp_level 2;
  38. gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
  39. gzip_vary on;
  40. gzip_proxied expired no-cache no-store private auth;
  41. gzip_disable "MSIE [1-6]\.";
  42. server_tokens off;
  43. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  44. '$status $body_bytes_sent "$http_referer" '
  45. '"$http_user_agent" "$http_x_forwarded_for"';
  46. access_log /var/log/nginx/access.log main;
  47. include /etc/nginx/vhost/*.conf;
  48. }