Advertisement
h4x3r

nginx.conf

Dec 25th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 2.04 KB | None | 0 0
  1.  
  2. user  nginx;
  3. worker_processes  2;
  4.  
  5. error_log  /var/log/nginx/error.log warn;
  6. pid        /var/run/nginx.pid;
  7.  
  8.  
  9. events {
  10.     worker_connections  1024;
  11. }
  12.  
  13.  
  14. http {
  15.     include       /etc/nginx/mime.types;
  16.     default_type  application/octet-stream;
  17.  
  18.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  19.                       '$status $body_bytes_sent "$http_referer" '
  20.                       '"$http_user_agent" "$http_x_forwarded_for"';
  21.                      
  22.  
  23.     #access_log  /var/log/nginx/access.log  main;
  24.     index index.php  index.html index.htm;
  25.     sendfile        on;
  26.     #tcp_nopush     on;
  27.  
  28.     keepalive_timeout  65;
  29.  
  30.     #gzip  on;
  31.    gzip on;
  32. gzip_vary   on;
  33. gzip_disable "MSIE [1-6]\.";
  34. gzip_static on;
  35. gzip_min_length   1400;
  36. gzip_buffers      32 8k;
  37. gzip_http_version 1.0;
  38. gzip_comp_level 5;
  39. gzip_proxied    any;
  40. gzip_types text/plain text/css text/xml application/javascript application/x-javascript application/xml application/xml+rss application/ecmascript application/json image/svg+xml;
  41.  
  42. #    include /etc/nginx/conf.d/*.conf;
  43. include /etc/nginx/domains/*.conf;
  44. client_body_buffer_size 256k;
  45.  client_body_in_file_only off;
  46.  client_body_timeout 60s;
  47.  client_header_buffer_size 64k;
  48.  client_header_timeout  20s;
  49.  client_max_body_size 10m;
  50.  connection_pool_size  512;
  51.  
  52.  # Cloudflare
  53. set_real_ip_from    103.21.244.0/22;
  54. set_real_ip_from    103.22.200.0/22;
  55. set_real_ip_from    103.31.4.0/22;
  56. set_real_ip_from    104.16.0.0/12;
  57. set_real_ip_from    108.162.192.0/18;
  58. set_real_ip_from    131.0.72.0/22;
  59. set_real_ip_from    141.101.64.0/18;
  60. set_real_ip_from    162.158.0.0/15;
  61. set_real_ip_from    172.64.0.0/13;
  62. set_real_ip_from    173.245.48.0/20;
  63. set_real_ip_from    188.114.96.0/20;
  64. set_real_ip_from    190.93.240.0/20;
  65. set_real_ip_from    197.234.240.0/22;
  66. set_real_ip_from    198.41.128.0/17;
  67. set_real_ip_from    2400:cb00::/32;
  68. set_real_ip_from    2405:8100::/32;
  69. set_real_ip_from    2405:b500::/32;
  70. set_real_ip_from    2606:4700::/32;
  71. set_real_ip_from    2803:f800::/32;
  72. set_real_ip_from    2c0f:f248::/32;
  73. set_real_ip_from    2a06:98c0::/29;
  74.  
  75.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement