refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
18
app/Http/Middleware/TrustProxies.php
Normal file
18
app/Http/Middleware/TrustProxies.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Monicahq\Cloudflare\Http\Middleware\TrustProxies as Middleware;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the trusted proxies.
|
||||
*
|
||||
* @return array|string|null
|
||||
*/
|
||||
protected function proxies()
|
||||
{
|
||||
return config('app.trust_proxies') ?? $this->proxies;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user