nginx.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. types_hash_max_size 2048;
  16. # server_tokens off;
  17. # server_names_hash_bucket_size 64;
  18. # server_name_in_redirect off;
  19. include /etc/nginx/mime.types;
  20. default_type application/octet-stream;
  21. ##
  22. # SSL Settings
  23. ##
  24. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  25. ssl_prefer_server_ciphers on;
  26. ##
  27. # Logging Settings
  28. ##
  29. access_log /var/log/nginx/access.log;
  30. error_log /var/log/nginx/error.log;
  31. ##
  32. # Gzip Settings
  33. ##
  34. gzip on;
  35. # gzip_vary on;
  36. # gzip_proxied any;
  37. # gzip_comp_level 6;
  38. # gzip_buffers 16 8k;
  39. # gzip_http_version 1.1;
  40. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  41. ##
  42. # Virtual Host Configs
  43. ##
  44. include /etc/nginx/conf.d/*.conf;
  45. include /etc/nginx/sites-enabled/*;
  46. }
  47. #mail {
  48. # # See sample authentication script at:
  49. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  50. #
  51. # # auth_http localhost/auth.php;
  52. # # pop3_capabilities "TOP" "USER";
  53. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  54. #
  55. # server {
  56. # listen localhost:110;
  57. # protocol pop3;
  58. # proxy on;
  59. # }
  60. #
  61. # server {
  62. # listen localhost:143;
  63. # protocol imap;
  64. # proxy on;
  65. # }
  66. #}