nginx.conf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. user nginx;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. events {
  5. worker_connections 1024;
  6. #multi_accept on;
  7. }
  8. http {
  9. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  10. '$status $body_bytes_sent "$http_referer" '
  11. '"$http_user_agent" "$http_x_forwarded_for"';
  12. ##
  13. # Basic Settings
  14. ##
  15. sendfile on;
  16. tcp_nopush on;
  17. types_hash_max_size 2048;
  18. server_tokens off;
  19. #autoindex on;
  20. #server_names_hash_bucket_size 64;
  21. #server_name_in_redirect off;
  22. include 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. access_log /var/log/nginx/access.log main;
  33. error_log /var/log/nginx/error.log;
  34. ##
  35. # Gzip Settings
  36. ##
  37. gzip on;
  38. #gzip_vary on;
  39. #gzip_proxied any;
  40. #gzip_comp_level 6;
  41. #gzip_buffers 16 8k;
  42. #gzip_http_version 1.1;
  43. #gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  44. ##
  45. # Virtual Host Configs
  46. ##
  47. include servers/*.conf;
  48. }