Guest User

Untitled

a guest
Apr 5th, 2017
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user www www;
  2. worker_processes 48;
  3. worker_cpu_affinity auto;
  4. worker_rlimit_nofile 600000; #2 filehandlers for each connection
  5. error_log /var/log/nginx-error.log warn;
  6.  
  7. events {
  8. worker_connections 32768;
  9. multi_accept on;
  10. accept_mutex off;
  11. use kqueue;
  12. kqueue_changes 2048;
  13. }
  14.  
  15. http {
  16. server_names_hash_max_size 10240;
  17. server_names_hash_bucket_size 2048;
  18. add_header X-XSS-Protection "1; mode=block";
  19. include mime.types;
  20. default_type application/octet-stream;
  21. keepalive_requests 200;
  22. client_max_body_size 4096M;
  23. client_body_buffer_size 2048M;
  24. output_buffers 1 512k;
  25. sendfile_max_chunk 512k;
  26.  
  27. open_file_cache max=10000 inactive=999s;
  28. open_file_cache_valid 60s;
  29. open_file_cache_min_uses 2;
  30. open_file_cache_errors on;
  31.  
  32. client_header_buffer_size 256k;
  33. large_client_header_buffers 4 256k;
  34. server_tokens off; #Conceals nginx version
  35. # access_log off;
  36. access_log /var/log/nginx-access.log;
  37. sendfile on;
  38. tcp_nodelay on;
  39. tcp_nopush on;
  40.  
  41. client_header_timeout 30s;
  42. client_body_timeout 30s;
  43. send_timeout 30s;
  44. keepalive_timeout 0;
  45. reset_timedout_connection on;
  46.  
  47. fastcgi_connect_timeout 30s;
  48. fastcgi_send_timeout 30s;
  49. fastcgi_read_timeout 60s;
  50. proxy_read_timeout 60s;
  51. fastcgi_ignore_client_abort on;
  52. fastcgi_buffer_size 64k;
  53. fastcgi_buffers 16 64k;
  54. fastcgi_temp_file_write_size 256k;
  55. fastcgi_max_temp_file_size 2048m;
  56.  
  57. ssl_session_cache shared:SSL:10m;
  58. ssl_session_timeout 10m;
  59. gzip off;
  60. gzip_vary on;
  61. gzip_disable "MSIE [1-6]\.";
  62. gzip_proxied any;
  63. gzip_http_version 1.0;
  64. gzip_min_length 1280;
  65. gzip_comp_level 6;
  66. gzip_buffers 16 8k;
  67. gzip_types text/plain text/xml text/css application/x-javascript image/png image/x-icon image/gif image/jpeg image/jpg application/xml
  68. application/xml+rss text/javascr ipt application/atom+xml;
  69. include /usr/local/etc/nginx/vhosts/*.conf;
  70. # include qwilt_users.inc;
  71. # include qwilt_users_http.inc;
  72. include spam.inc;
  73. }
RAW Paste Data