nginx.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. user www-data;
  2. worker_processes 1;
  3. pid /var/run/nginx.pid;
  4. events {
  5. multi_accept on;
  6. worker_connections 1024;
  7. }
  8. http {
  9. gzip on;
  10. gzip_vary on;
  11. gzip_comp_level 5;
  12. gzip_types text/plain application/x-javascript text/xml text/css;
  13. autoindex on;
  14. sendfile on;
  15. tcp_nopush on;
  16. tcp_nodelay on;
  17. keepalive_timeout 65;
  18. types_hash_max_size 2048;
  19. server_tokens off;
  20. include /etc/nginx/mime.types;
  21. default_type application/octet-stream;
  22. access_log /var/log/nginx/access.log;
  23. error_log /var/log/nginx/error.log;
  24. client_max_body_size 32M;
  25. client_header_buffer_size 8m;
  26. large_client_header_buffers 8 8m;
  27. fastcgi_buffer_size 8m;
  28. fastcgi_buffers 8 8m;
  29. fastcgi_read_timeout 600;
  30. set_real_ip_from 204.93.240.0/24;
  31. set_real_ip_from 204.93.177.0/24;
  32. set_real_ip_from 199.27.128.0/21;
  33. set_real_ip_from 173.245.48.0/20;
  34. set_real_ip_from 103.21.244.0/22;
  35. set_real_ip_from 103.22.200.0/22;
  36. set_real_ip_from 103.31.4.0/22;
  37. set_real_ip_from 141.101.64.0/18;
  38. set_real_ip_from 108.162.192.0/18;
  39. set_real_ip_from 190.93.240.0/20;
  40. set_real_ip_from 188.114.96.0/20;
  41. set_real_ip_from 197.234.240.0/22;
  42. set_real_ip_from 198.41.128.0/17;
  43. real_ip_header CF-Connecting-IP;
  44. include /etc/nginx/conf.d/*.conf;
  45. }