nginx.conf.template 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
  2. ## ! This file was generated from a template ! ##
  3. ## ! See /etc/nginx/templates/ ! ##
  4. ## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
  5. daemon off;
  6. user www-data;
  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 65;
  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. client_max_body_size 50m;
  38. # gzip_vary on;
  39. # gzip_proxied any;
  40. # gzip_comp_level 6;
  41. # gzip_buffers 16 8k;
  42. # gzip_http_version 1.1;
  43. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  44. ##
  45. # nginx-naxsi config
  46. ##
  47. # Uncomment it if you installed nginx-naxsi
  48. ##
  49. #include /etc/nginx/naxsi_core.rules;
  50. ##
  51. # nginx-passenger config
  52. ##
  53. # Uncomment it if you installed nginx-passenger
  54. ##
  55. #passenger_root /usr;
  56. #passenger_ruby /usr/bin/ruby;
  57. ##
  58. # Virtual Host Configs
  59. ##
  60. include /etc/nginx/conf.d/*.conf;
  61. include /etc/nginx/sites-enabled/*;
  62. }