Update cloudfare_real_ip.conf

pull/185/head
midoks 3 years ago
parent 998f677ee7
commit e994375fc8
  1. 3
      rewrite/nginx/cloudfare_real_ip.conf

@ -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){

Loading…
Cancel
Save