nginx.conf 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log notice;
  4. pid /var/run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. include /etc/nginx/mime.types;
  10. default_type application/octet-stream;
  11. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  12. '$status $body_bytes_sent "$http_referer" '
  13. '"$http_user_agent" "$http_x_forwarded_for"';
  14. access_log /var/log/nginx/access.log main;
  15. sendfile on;
  16. #tcp_nopush on;
  17. keepalive_timeout 65;
  18. server_tokens off;
  19. client_max_body_size 5G;
  20. gzip on;
  21. gzip_min_length 1k;
  22. gzip_buffers 4 16k;
  23. gzip_http_version 1.0;
  24. gzip_comp_level 2;
  25. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml;
  26. gzip_vary on;
  27. include /etc/nginx/conf.d/*.conf;
  28. }