|
|
@ -1,4 +1,6 @@ |
|
|
|
location / { |
|
|
|
location / { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://www.cloudflare.com/zh-cn/ips/ |
|
|
|
set_real_ip_from 103.21.244.0/22; |
|
|
|
set_real_ip_from 103.21.244.0/22; |
|
|
|
set_real_ip_from 103.22.200.0/22; |
|
|
|
set_real_ip_from 103.22.200.0/22; |
|
|
|
set_real_ip_from 103.31.4.0/22; |
|
|
|
set_real_ip_from 103.31.4.0/22; |
|
|
@ -25,6 +27,7 @@ location / { |
|
|
|
real_ip_header CF-Connecting-IP; |
|
|
|
real_ip_header CF-Connecting-IP; |
|
|
|
#real_ip_header X-Forwarded-For; |
|
|
|
#real_ip_header X-Forwarded-For; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index index.html index.php; |
|
|
|
index index.html index.php; |
|
|
|
if (-f $request_filename/index.html){ |
|
|
|
if (-f $request_filename/index.html){ |
|
|
|
rewrite (.*) $1/index.html break; |
|
|
|
rewrite (.*) $1/index.html break; |
|
|
|