Advertisement
Guest User

nginx.conf

a guest
Mar 8th, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.33 KB | None | 0 0
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7.     worker_connections 768;
  8. }
  9.  
  10. http {
  11.  
  12.     sendfile on;
  13.     tcp_nopush on;
  14.     tcp_nodelay on;
  15.     keepalive_timeout 65;
  16.     types_hash_max_size 2048;
  17.  
  18.     include /etc/nginx/mime.types;
  19.     default_type application/octet-stream;
  20.  
  21.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  22.     ssl_prefer_server_ciphers on;
  23.  
  24.     access_log /var/log/nginx/access.log;
  25.     error_log /var/log/nginx/error.log;
  26.  
  27.     gzip on;
  28.  
  29.     include /etc/nginx/conf.d/*.conf;
  30.     include /etc/nginx/sites-enabled/*;
  31.    
  32.     set_real_ip_from 103.21.244.0/22;
  33.     set_real_ip_from 103.22.200.0/22;
  34.     set_real_ip_from 103.31.4.0/22;
  35.     set_real_ip_from 104.16.0.0/12;
  36.     set_real_ip_from 108.162.192.0/18;
  37.     set_real_ip_from 131.0.72.0/22;
  38.     set_real_ip_from 141.101.64.0/18;
  39.     set_real_ip_from 162.158.0.0/15;
  40.     set_real_ip_from 172.64.0.0/13;
  41.     set_real_ip_from 173.245.48.0/20;
  42.     set_real_ip_from 188.114.96.0/20;
  43.     set_real_ip_from 190.93.240.0/20;
  44.     set_real_ip_from 197.234.240.0/22;
  45.     set_real_ip_from 198.41.128.0/17;
  46.     set_real_ip_from 2400:cb00::/32;
  47.     set_real_ip_from 2606:4700::/32;
  48.     set_real_ip_from 2803:f800::/32;
  49.     set_real_ip_from 2405:b500::/32;
  50.     set_real_ip_from 2405:8100::/32;
  51.     set_real_ip_from 2c0f:f248::/32;
  52.     set_real_ip_from 2a06:98c0::/29;
  53.     real_ip_header CF-Connecting-IP;
  54.  
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement