nginx.conf 875 B

123456789101112131415161718192021222324252627282930
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log;
  4. pid /run/nginx.pid;
  5. events {
  6. worker_connections 1024;
  7. }
  8. http {
  9. gzip on;
  10. gzip_vary on;
  11. gzip_proxied any;
  12. gzip_min_length 1000;
  13. gzip_comp_level 6;
  14. gzip_types text/plain application/xml application/json application/javascript text/css;
  15. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  16. '$status $body_bytes_sent "$http_referer" '
  17. '"$http_user_agent" "$http_x_forwarded_for"';
  18. access_log /var/log/nginx/access.log main;
  19. sendfile on;
  20. tcp_nopush on;
  21. tcp_nodelay on;
  22. keepalive_timeout 65;
  23. types_hash_max_size 4096;
  24. include /etc/nginx/mime.types;
  25. default_type application/octet-stream;
  26. include /etc/nginx/conf.d/*.conf;
  27. }