forked from laysense/laysite
Document Cloudflare and Docker proxy setup after review
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user