Document Cloudflare and Docker proxy setup after review

This commit is contained in:
2026-11-27 23:37:39 +08:00
parent 2117ba1944
commit 1142d8b38b
3 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ final class Request extends \support\Request
return $peer;
}
// Prefer a single address set by the ingress over a forwarded chain.
// Bunny replaces X-Real-IP and forwards other custom headers. Standard Cloudflare origin requests omit it.
foreach (['x-real-ip', 'cf-connecting-ip'] as $name) {
$address = $this->header($name);
if (filter_var($address, FILTER_VALIDATE_IP)) {