nginx.conf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. user www-data;
  2. worker_processes auto;
  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. client_max_body_size 100M;
  15. tcp_nopush on;
  16. tcp_nodelay on;
  17. keepalive_timeout 65;
  18. types_hash_max_size 2048;
  19. server_tokens off;
  20. # server_names_hash_bucket_size 64;
  21. # server_name_in_redirect off;
  22. include /etc/nginx/mime.types;
  23. default_type application/octet-stream;
  24. ##
  25. # SSL Settings
  26. ##
  27. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  28. ssl_prefer_server_ciphers on;
  29. # Set Stronger Diffie-Hellman key exchange
  30. #ssl_dhparam /etc/nginx/ssl/dhparam.pem;
  31. ##
  32. # Logging Settings
  33. ##
  34. access_log /var/log/nginx/access.log;
  35. error_log /var/log/nginx/error.log;
  36. ##
  37. # Gzip Settings
  38. ##
  39. gzip on;
  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/javascript text/xml application/xml application/xml+rss text/javascript;
  46. ##
  47. # Virtual Host Configs
  48. ##
  49. include /etc/nginx/conf.d/*.conf;
  50. include /etc/nginx/sites-enabled/*;
  51. }
  52. #mail {
  53. # # See sample authentication script at:
  54. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  55. #
  56. # # auth_http localhost/auth.php;
  57. # # pop3_capabilities "TOP" "USER";
  58. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  59. #
  60. # server {
  61. # listen localhost:110;
  62. # protocol pop3;
  63. # proxy on;
  64. # }
  65. #
  66. # server {
  67. # listen localhost:143;
  68. # protocol imap;
  69. # proxy on;
  70. # }
  71. #}