Advertisement
tatdat171

nginx.conf

Jul 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. worker_processes 4;
  2.  
  3. events {
  4. worker_connections 1024;
  5. }
  6.  
  7.  
  8. http {
  9. include mime.types;
  10. default_type application/octet-stream;
  11.  
  12. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  13. # '$status $body_bytes_sent "$http_referer" '
  14. # '"$http_user_agent" "$http_x_forwarded_for"';
  15.  
  16. #access_log logs/access.log main;
  17. server_tokens off;
  18. sendfile on;
  19. charset_types text/css text/plain text/vnd.wap.wml application/javascript application/json application/rss+xml application/xml;
  20. #keepalive_timeout 0;
  21. keepalive_timeout 65;
  22.  
  23. # cache informations about FDs, frequently accessed files
  24. # # can boost performance, but you need to test those values
  25. #open_file_cache max=200000 inactive=20s;
  26. #open_file_cache_valid 30s;
  27. #open_file_cache_min_uses 2;
  28. #open_file_cache_errors on;
  29.  
  30. # send headers in one peace, its better then sending them one by one
  31. #tcp_nopush on;
  32.  
  33. # don't buffer data sent, good for small data bursts in real time
  34. #tcp_nodelay on;
  35.  
  36. #enable gzip
  37. gzip on;
  38. gzip_comp_level 5;
  39. gzip_min_length 256;
  40. gzip_proxied any;
  41. gzip_vary on;
  42. gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
  43.  
  44. include site-enabled/*.conf;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement