2
0

nginx.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 1024;
  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 25;
  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/proxy_remote.conf;
  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 TLSv1.3; # Dropping SSLv3, ref: POODLE
  28. ssl_prefer_server_ciphers on;
  29. ##
  30. # Logging Settings
  31. ##
  32. log_format timed_combined '$remote_addr - $remote_user [$time_local] '
  33. '"$request" $status $body_bytes_sent '
  34. '"$http_referer" "$http_user_agent" "$host" $request_time';
  35. access_log /var/log/nginx/access.log timed_combined;
  36. error_log /var/log/nginx/error.log;
  37. ##
  38. # Gzip Settings
  39. ##
  40. gzip on;
  41. # gzip_proxied any;
  42. gzip_vary on;
  43. gzip_min_length 1000;
  44. gzip_proxied no-cache no-store private expired auth;
  45. gzip_comp_level 6;
  46. gzip_buffers 16 8k;
  47. # gzip_http_version 1.1;
  48. gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  49. ##
  50. # Virtual Host Configs
  51. ##
  52. limit_conn_zone $binary_remote_addr zone=addr:10m;
  53. include /home/httpd/*/conf/proxy.*.conf;
  54. include /etc/nginx/conf.d/*.conf;
  55. include /etc/nginx/sites-enabled/*;
  56. }
  57. #mail {
  58. # # See sample authentication script at:
  59. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  60. #
  61. # # auth_http localhost/auth.php;
  62. # # pop3_capabilities "TOP" "USER";
  63. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  64. #
  65. # server {
  66. # listen localhost:110;
  67. # protocol pop3;
  68. # proxy on;
  69. # }
  70. #
  71. # server {
  72. # listen localhost:143;
  73. # protocol imap;
  74. # proxy on;
  75. # }
  76. #}