nginx.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4. events {
  5. worker_connections 768;
  6. # multi_accept on;
  7. }
  8. http {
  9. ##
  10. # Basic Settings
  11. ##
  12. # increase body size that nextcloud can receive large files
  13. client_max_body_size 64m;
  14. sendfile on;
  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.1 TLSv1.2; # Dropping SSLv3/TLSv1, ref: POODLE
  28. ssl_prefer_server_ciphers on;
  29. ##
  30. # Logging Settings
  31. ##
  32. access_log /var/log/nginx/access.log;
  33. error_log /var/log/nginx/error.log;
  34. ##
  35. # Gzip Settings
  36. ##
  37. gzip on;
  38. gzip_disable "msie6";
  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. #}