Update cloudfare_real_ip.conf

This commit is contained in:
midoks 2022-09-07 09:54:20 +08:00
parent 998f677ee7
commit e994375fc8
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,6 @@
location / {
# https://www.cloudflare.com/zh-cn/ips/
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;
@ -24,6 +26,7 @@ location / {
# use any of the following two
real_ip_header CF-Connecting-IP;
#real_ip_header X-Forwarded-For;
index index.html index.php;
if (-f $request_filename/index.html){