Advertisement
tarrac

Untitled

May 16th, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes auto;
  7. error_log /var/log/nginx/error.log;
  8. pid /run/nginx.pid;
  9.  
  10. # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
  11. include /usr/share/nginx/modules/*.conf;
  12.  
  13. events {
  14. worker_connections 1024;
  15. }
  16.  
  17. http {
  18. include /etc/nginx/mime.types;
  19. default_type text/htm;
  20.  
  21. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. '$status $body_bytes_sent "$http_referer" '
  23. '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25. access_log /var/log/nginx/access.log main;
  26.  
  27. client_body_timeout 5m;
  28. send_timeout 5m;
  29.  
  30. connection_pool_size 4096;
  31. client_header_buffer_size 4k;
  32. large_client_header_buffers 4 4k;
  33. request_pool_size 4k;
  34. reset_timedout_connection on;
  35.  
  36.  
  37. gzip on;
  38. gzip_min_length 100;
  39. gzip_buffers 4 8k;
  40. gzip_comp_level 5;
  41. gzip_types text/plain;
  42. gzip_types application/x-javascript;
  43. gzip_types text/css;
  44.  
  45. output_buffers 128 512k;
  46. postpone_output 1460;
  47. aio on;
  48. directio 512;
  49.  
  50. sendfile on;
  51. client_max_body_size 8m;
  52. client_body_buffer_size 256k;
  53. fastcgi_intercept_errors on;
  54.  
  55. tcp_nopush on;
  56. tcp_nodelay on;
  57.  
  58. keepalive_timeout 75 20;
  59.  
  60. ignore_invalid_headers on;
  61.  
  62. index index.php;
  63. server_tokens off;
  64.  
  65. include /etc/nginx/conf.d/*.conf;
  66. }
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement