nginx.conf 607 B

123456789101112131415161718192021222324252627282930
  1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4. daemon off;
  5. events {
  6. worker_connections 2048;
  7. multi_accept on;
  8. use epoll;
  9. }
  10. http {
  11. server_tokens off;
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 15;
  16. types_hash_max_size 2048;
  17. client_max_body_size 20M;
  18. include /etc/nginx/mime.types;
  19. default_type application/octet-stream;
  20. access_log /var/log/nginx/access.log;
  21. error_log /var/log/nginx/error.log;
  22. gzip on;
  23. gzip_disable "msie6";
  24. include /etc/nginx/conf.d/*.conf;
  25. include /etc/nginx/sites-available/*;
  26. open_file_cache max=100;
  27. charset UTF-8;
  28. }