2
0

nginx.conf 822 B

123456789101112131415161718192021222324252627282930313233343536
  1. # let's assume dual-core machine
  2. worker_processes 2;
  3. error_log /var/log/nginx/error.log debug;
  4. pid /var/run/nginx.pid;
  5. load_module /etc/nginx/modules/ngx_http_image_filter_module.so;
  6. events {
  7. # this should be equal to value of "ulimit -n"
  8. # reference: https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration
  9. worker_connections 1048576;
  10. }
  11. http {
  12. include /etc/nginx/mime.types;
  13. default_type application/octet-stream;
  14. log_format main
  15. '$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. keepalive_timeout 65;
  22. #gzip on;
  23. client_max_body_size 100M;
  24. include /etc/nginx/conf.d/*.conf;
  25. }