cloudflare_ip

This commit is contained in:
Martin 2025-04-02 12:37:56 +02:00
parent f62b4a1050
commit 7c605017c5

View File

@ -6,6 +6,16 @@ server {
add_header Content-Type text/plain; add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n"; return 200 "User-agent: *\nDisallow: /\n";
} }
real_ip_recursive on;
real_ip_header CF-Connecting-IP;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
#SSL configuration #SSL configuration
listen 443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;