nginx.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5. events {
  6. multi_accept on;
  7. worker_connections 2048;
  8. use epoll;
  9. }
  10. http {
  11. include /etc/nginx/mime.types;
  12. default_type application/octet-stream;
  13. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  14. '$status $body_bytes_sent "$http_referer" '
  15. '"$http_user_agent" "$http_x_forwarded_for"';
  16. access_log /var/log/nginx/access.log main;
  17. gzip on;
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 4096;
  23. ssl_session_timeout 10m;
  24. ssl_session_cache shared:SSL:1m;
  25. include /etc/nginx/conf.d/*.conf;
  26. }