@@ -17,40 +17,4 @@ server {
17
17
proxy_set_header X-Forwarded-Server $host;
18
18
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19
19
}
20
-
21
- ###################### Cloudflare masks real IPs #########################
22
- # We are using cloudflare for DNS management #
23
- # Cloudflare masks the real ip of the user with its ips #
24
- # Here we are specifying cloudflare to provide with the user's actual ip #
25
- # via sending a special header. #
26
- ##########################################################################
27
-
28
- # IPv4
29
- set_real_ip_from 173.245.48.0/20;
30
- set_real_ip_from 103.21.244.0/22;
31
- set_real_ip_from 103.22.200.0/22;
32
- set_real_ip_from 103.31.4.0/22;
33
- set_real_ip_from 141.101.64.0/18;
34
- set_real_ip_from 108.162.192.0/18;
35
- set_real_ip_from 190.93.240.0/20;
36
- set_real_ip_from 188.114.96.0/20;
37
- set_real_ip_from 197.234.240.0/22;
38
- set_real_ip_from 198.41.128.0/17;
39
- set_real_ip_from 162.158.0.0/15;
40
- set_real_ip_from 104.16.0.0/13;
41
- set_real_ip_from 104.24.0.0/14;
42
- set_real_ip_from 172.64.0.0/13;
43
- set_real_ip_from 131.0.72.0/22;
44
- set_real_ip_from 172.19.0.0/16;
45
-
46
- # IPv6
47
- set_real_ip_from 2400:cb00::/32;
48
- set_real_ip_from 2606:4700::/32;
49
- set_real_ip_from 2803:f800::/32;
50
- set_real_ip_from 2405:b500::/32;
51
- set_real_ip_from 2405:8100::/32;
52
- set_real_ip_from 2a06:98c0::/29;
53
- set_real_ip_from 2c0f:f248::/32;
54
-
55
- real_ip_header CF-Connecting-IP;
56
20
}
0 commit comments