nginx.conf 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5. events {
  6. worker_connections 768;
  7. # multi_accept on;
  8. }
  9. http {
  10. ##
  11. # Basic Settings
  12. ##
  13. sendfile on;
  14. tcp_nopush on;
  15. tcp_nodelay on;
  16. keepalive_timeout 65;
  17. types_hash_max_size 2048;
  18. server_tokens off;
  19. # server_names_hash_bucket_size 64;
  20. # server_name_in_redirect off;
  21. client_max_body_size 0;
  22. include /etc/nginx/mime.types;
  23. default_type application/octet-stream;
  24. ##
  25. # Logging Settings
  26. ##
  27. access_log /dev/stdout;
  28. error_log /dev/stderr;
  29. ##
  30. # Gzip Settings
  31. ##
  32. gzip on;
  33. gzip_disable "msie6";
  34. # gzip_vary on;
  35. # gzip_proxied any;
  36. # gzip_comp_level 6;
  37. # gzip_buffers 16 8k;
  38. # gzip_http_version 1.1;
  39. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  40. ##
  41. # Virtual Host Configs
  42. ##
  43. include /config/nginx/site-confs/*;
  44. }
  45. daemon off;