letopisec

Untitled

May 13th, 2020
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. user web;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7. worker_connections 768;
  8. multi_accept on;
  9. }
  10.  
  11. http {
  12. client_max_body_size 100m;
  13. client_body_buffer_size 128k;
  14. fastcgi_read_timeout 1d;
  15. proxy_read_timeout 1h;
  16.  
  17. open_file_cache max=200000 inactive=20s;
  18. open_file_cache_valid 30s;
  19. open_file_cache_min_uses 2;
  20. open_file_cache_errors on;
  21.  
  22.  
  23.  
  24. sendfile on;
  25. tcp_nopush on;
  26. tcp_nodelay on;
  27. keepalive_timeout 30;
  28. keepalive_requests 1000;
  29. reset_timedout_connection on;
  30. client_body_timeout 10;
  31. send_timeout 2;
  32. types_hash_max_size 2048;
  33.  
  34. include /etc/nginx/mime.types;
  35. default_type application/octet-stream;
  36.  
  37. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  38. ssl_prefer_server_ciphers on;
  39.  
  40. access_log /var/log/nginx/access.log;
  41. error_log /var/log/nginx/error.log;
  42.  
  43. gzip on;
  44. gzip_min_length 10240;
  45. gzip_proxied expired no-cache no-store private auth;
  46. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
  47. gzip_disable "msie6";
  48.  
  49. include /etc/nginx/conf.d/*.conf;
  50. include /etc/nginx/sites-enabled/*;
  51. }
Add Comment
Please, Sign In to add comment