Skip to content

Commit f3e9d1f

Browse files
authored
Merge pull request hestiacp#1332 from mikorist/patch-1, debian8 nginx.conf fix
Update nginx.conf
2 parents ba14a64 + 43fdf7a commit f3e9d1f

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

install/debian/8/nginx/nginx.conf

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
user www-data;
33
worker_processes auto;
44
worker_rlimit_nofile 65535;
5+
timer_resolution 50ms; #In order to free some CPU cycles
56
error_log /var/log/nginx/error.log crit;
67
pid /var/run/nginx.pid;
78

@@ -70,25 +71,27 @@ http {
7071

7172

7273
# Cloudflare https://www.cloudflare.com/ips
73-
set_real_ip_from 199.27.128.0/21;
74-
set_real_ip_from 173.245.48.0/20;
75-
set_real_ip_from 103.21.244.0/22;
76-
set_real_ip_from 103.22.200.0/22;
77-
set_real_ip_from 103.31.4.0/22;
78-
set_real_ip_from 141.101.64.0/18;
79-
set_real_ip_from 108.162.192.0/18;
80-
set_real_ip_from 190.93.240.0/20;
81-
set_real_ip_from 188.114.96.0/20;
82-
set_real_ip_from 197.234.240.0/22;
83-
set_real_ip_from 198.41.128.0/17;
84-
set_real_ip_from 162.158.0.0/15;
85-
set_real_ip_from 104.16.0.0/12;
86-
set_real_ip_from 172.64.0.0/13;
87-
#set_real_ip_from 2400:cb00::/32;
88-
#set_real_ip_from 2606:4700::/32;
89-
#set_real_ip_from 2803:f800::/32;
90-
#set_real_ip_from 2405:b500::/32;
91-
#set_real_ip_from 2405:8100::/32;
74+
set_real_ip_from 103.21.244.0/22;
75+
set_real_ip_from 103.22.200.0/22;
76+
set_real_ip_from 103.31.4.0/22;
77+
set_real_ip_from 104.16.0.0/12;
78+
set_real_ip_from 108.162.192.0/18;
79+
set_real_ip_from 131.0.72.0/22;
80+
set_real_ip_from 141.101.64.0/18;
81+
set_real_ip_from 162.158.0.0/15;
82+
set_real_ip_from 172.64.0.0/13;
83+
set_real_ip_from 173.245.48.0/20;
84+
set_real_ip_from 188.114.96.0/20;
85+
set_real_ip_from 190.93.240.0/20;
86+
set_real_ip_from 197.234.240.0/22;
87+
set_real_ip_from 198.41.128.0/17;
88+
set_real_ip_from 2400:cb00::/32;
89+
set_real_ip_from 2606:4700::/32;
90+
set_real_ip_from 2803:f800::/32;
91+
set_real_ip_from 2405:b500::/32;
92+
set_real_ip_from 2405:8100::/32;
93+
set_real_ip_from 2c0f:f248::/32;
94+
set_real_ip_from 2a06:98c0::/29;
9295
real_ip_header CF-Connecting-IP;
9396

9497

0 commit comments

Comments
 (0)