nginx.conf 1.5 KB

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