# IPCLOAKAPI — 业务站点（占位符由 install_bt.sh / post_site.sh 替换）
# __CLOAK_ROOT__  __PHP_INCLUDE__

location @cloaka_entry {
    include __PHP_INCLUDE__;
    fastcgi_param SCRIPT_FILENAME __CLOAK_ROOT__/ip_check.php;
    fastcgi_param SCRIPT_NAME /ip_check.php;
    fastcgi_param REQUEST_URI $request_uri;
    fastcgi_param QUERY_STRING $query_string;
}

location / {
    try_files $uri $uri/ @cloaka_entry;
}
