nginx.conf.template 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
  2. ## ! This file was generated from a template ! ##
  3. ## ! See /etc/nginx/templates/ ! ##
  4. ## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
  5. daemon off;
  6. user root;
  7. worker_processes ${NGINX_WORKER_PROCESSES};
  8. pid /run/nginx.pid;
  9. events {
  10. worker_connections ${NGINX_WORKER_CONNECTIONS};
  11. # multi_accept on;
  12. }
  13. http {
  14. ##
  15. # Basic Settings
  16. ##
  17. sendfile on;
  18. tcp_nopush on;
  19. tcp_nodelay on;
  20. keepalive_timeout ${NGINX_KEEPALIVE_TIMEOUT};
  21. types_hash_max_size 2048;
  22. # server_tokens off;
  23. # server_names_hash_bucket_size 64;
  24. # server_name_in_redirect off;
  25. include /etc/nginx/mime.types;
  26. default_type application/octet-stream;
  27. ##
  28. # Logging Settings
  29. ##
  30. access_log /var/log/nginx/access.log;
  31. error_log /var/log/nginx/error.log;
  32. ##
  33. # Gzip Settings
  34. ##
  35. gzip on;
  36. gzip_disable "msie6";
  37. gzip_proxied any; # allow upstream server to compress.
  38. client_max_body_size 50m;
  39. # gzip_vary on;
  40. # gzip_proxied any;
  41. # gzip_comp_level 6;
  42. # gzip_buffers 16 8k;
  43. # gzip_http_version 1.1;
  44. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  45. ##
  46. # nginx-naxsi config
  47. ##
  48. # Uncomment it if you installed nginx-naxsi
  49. ##
  50. #include /etc/nginx/naxsi_core.rules;
  51. ##
  52. # nginx-passenger config
  53. ##
  54. # Uncomment it if you installed nginx-passenger
  55. ##
  56. #passenger_root /usr;
  57. #passenger_ruby /usr/bin/ruby;
  58. ##
  59. # Virtual Host Configs
  60. ##
  61. include /etc/nginx/conf.d/*.conf;
  62. include /etc/nginx/sites-enabled/*;
  63. }