Guest User

Untitled

a guest
Jan 23rd, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. worker_processes auto;
  2. pid /run/nginx.pid;
  3. worker_rlimit_nofile 100000;
  4. error_log /var/log/nginx/error.log crit;
  5. events {
  6. worker_connections 4000;
  7. multi_accept on;
  8. use epoll;
  9. }
  10.  
  11. http {
  12. include /etc/nginx/mime.types;
  13. sendfile on;
  14. tcp_nopush on;
  15. tcp_nodelay on;
  16. directio 4m;
  17. types_hash_max_size 2048;
  18.  
  19. client_body_buffer_size 15K;
  20. client_max_body_size 8m;
  21.  
  22. keepalive_timeout 20;
  23. client_body_timeout 15;
  24. client_header_timeout 15;
  25. send_timeout 10;
  26.  
  27. open_file_cache max=5000 inactive=20s;
  28. open_file_cache_valid 60s;
  29. open_file_cache_min_uses 5;
  30. open_file_cache_errors off;
  31.  
  32. gzip on;
  33. gzip_comp_level 2;
  34. gzip_min_length 1000;
  35. gzip_proxied any;
  36. gzip_types text/plain text/css application/json application/xjavascript text/xml application/xml application/xml+rss text/javascript;
  37.  
  38. access_log off;
  39. log_not_found off;
  40. include /etc/nginx/conf.d/*.conf;
  41. }
Add Comment
Please, Sign In to add comment