nginx.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. types {
  24. # add support for wasm MIME type, that is required by specification and it is not part of default mime.types file
  25. application/wasm wasm;
  26. }
  27. default_type application/octet-stream;
  28. ##
  29. # Logging Settings
  30. ##
  31. access_log /dev/stdout;
  32. error_log /dev/stderr;
  33. ##
  34. # Gzip Settings
  35. ##
  36. gzip on;
  37. gzip_types text/plain text/css application/javascript application/json;
  38. gzip_vary on;
  39. gzip_min_length 860;
  40. # gzip_vary on;
  41. # gzip_proxied any;
  42. # gzip_comp_level 6;
  43. # gzip_buffers 16 8k;
  44. # gzip_http_version 1.1;
  45. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  46. ##
  47. # Virtual Host Configs
  48. ##
  49. include /config/nginx/site-confs/*;
  50. }
  51. daemon off;