Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes 2;
- error_log /var/log/nginx/error.log warn;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log /var/log/nginx/access.log main;
- index index.php index.html index.htm;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 65;
- #gzip on;
- gzip on;
- gzip_vary on;
- gzip_disable "MSIE [1-6]\.";
- gzip_static on;
- gzip_min_length 1400;
- gzip_buffers 32 8k;
- gzip_http_version 1.0;
- gzip_comp_level 5;
- gzip_proxied any;
- 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;
- # include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/domains/*.conf;
- client_body_buffer_size 256k;
- client_body_in_file_only off;
- client_body_timeout 60s;
- client_header_buffer_size 64k;
- client_header_timeout 20s;
- client_max_body_size 10m;
- connection_pool_size 512;
- # Cloudflare
- 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 104.16.0.0/12;
- set_real_ip_from 108.162.192.0/18;
- set_real_ip_from 131.0.72.0/22;
- set_real_ip_from 141.101.64.0/18;
- set_real_ip_from 162.158.0.0/15;
- set_real_ip_from 172.64.0.0/13;
- set_real_ip_from 173.245.48.0/20;
- set_real_ip_from 188.114.96.0/20;
- set_real_ip_from 190.93.240.0/20;
- set_real_ip_from 197.234.240.0/22;
- set_real_ip_from 198.41.128.0/17;
- set_real_ip_from 2400:cb00::/32;
- set_real_ip_from 2405:8100::/32;
- set_real_ip_from 2405:b500::/32;
- set_real_ip_from 2606:4700::/32;
- set_real_ip_from 2803:f800::/32;
- set_real_ip_from 2c0f:f248::/32;
- set_real_ip_from 2a06:98c0::/29;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement