Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes auto;
- #worker_priority -10;
- worker_rlimit_nofile 100000;
- timer_resolution 100ms;
- pcre_jit on;
- error_log /var/log/nginx/error.log crit;
- pid /var/run/nginx.pid;
- events {
- worker_connections 3500;
- use epoll;
- #accept_mutex on;
- #accept_mutex_delay 200ms;
- multi_accept on;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- include /etc/nginx/conf/ddos1.conf;
- log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
- ‘$status $body_bytes_sent “$http_referer” ‘
- ‘”$http_user_agent” “$http_x_forwarded_for”‘;
- more_set_headers “Server: Nginx”;
- more_set_headers “X-Powered-By: VPSSIM”
- access_log off;
- sendfile_max_chunk 512k;
- tcp_nopush on;
- tcp_nodelay on;
- types_hash_max_size 2048;
- server_tokens off;
- server_name_in_redirect off;
- server_names_hash_bucket_size 128;
- open_file_cache max=130000 inactive=20s;
- open_file_cache_valid 30s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- open_log_file_cache max=10000 inactive=30s min_uses=2;
- output_buffers 8 256k;
- postpone_output 1460;
- request_pool_size 32k;
- connection_pool_size 512;
- directio 4m;
- client_body_buffer_size 256k;
- client_body_timeout 50;
- client_header_buffer_size 64k;
- client_body_in_file_only off;
- large_client_header_buffers 4 256k;
- client_header_timeout 15;
- ignore_invalid_headers on;
- client_max_body_size 240m;
- keepalive_timeout 20;
- keepalive_requests 1000;
- keepalive_disable msie6;
- lingering_time 20s;
- lingering_timeout 5s;
- reset_timedout_connection on;
- send_timeout 50;
- gzip on;
- gzip_static on;
- gzip_disable “msie6”;
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 5;
- gzip_buffers 32 8k;
- gzip_min_length 1024;
- gzip_http_version 1.1;
- GNU nano 2.0.9 File: /etc/nginx/nginx.conf
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml app$
- # Cloudflare module cho nginx
- set_real_ip_from 204.93.240.0/24;
- set_real_ip_from 204.93.177.0/24;
- set_real_ip_from 199.27.128.0/21;
- set_real_ip_from 173.245.48.0/20;
- set_real_ip_from 103.21.244.0/22;
- set_real_ip_from 103.22.200.0/22;
- set_real_ip_from 103.31.4.0/22;
- set_real_ip_from 141.101.64.0/18;
- set_real_ip_from 108.162.192.0/18;
- set_real_ip_from 190.93.240.0/20;
- set_real_ip_from 188.114.96.0/20;
- set_real_ip_from 197.234.240.0/22;
- set_real_ip_from 198.41.128.0/17;
- real_ip_header CF-Connecting-IP;
- fastcgi_buffers 8 16k;
- fastcgi_buffer_size 32k;
- fastcgi_connect_timeout 300;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- include /etc/nginx/conf.d/*.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement