tofic

nginx.conf

May 8th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. user www-data;
  2. worker_processes auto;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 1024;
  7. multi_accept on;
  8. use epoll;
  9. }
  10.  
  11. http {
  12. charset UTF-8;
  13.  
  14. sendfile on;
  15. keepalive_timeout 15;
  16. keepalive_disable msie6;
  17. keepalive_requests 100;
  18. tcp_nopush on;
  19. tcp_nodelay off;
  20. server_tokens off;
  21.  
  22. include /etc/nginx/mime.types;
  23. default_type application/octet-stream;
  24.  
  25. access_log /var/log/nginx/access.log combined;
  26. error_log /var/log/nginx/error.log error;
  27.  
  28. gzip on;
  29. gzip_comp_level 5;
  30. gzip_min_length 512;
  31. gzip_buffers 4 8k;
  32. gzip_proxied any;
  33. gzip_vary on;
  34. gzip_disable "msie6";
  35. gzip_types
  36. text/css
  37. text/javascript
  38. text/xml
  39. text/plain
  40. text/x-component
  41. application/javascript
  42. application/x-javascript
  43. application/json
  44. application/xml
  45. application/rss+xml
  46. application/vnd.ms-fontobject
  47. font/truetype
  48. font/opentype
  49. image/svg+xml;
  50.  
  51. include /etc/nginx/sites-enabled/*.conf;
  52. }
Add Comment
Please, Sign In to add comment