Fix config issue

This commit is contained in:
James Brooks
2025-05-13 11:01:10 +01:00
parent 92ad41e4a1
commit 586a8c1b37
3 changed files with 27 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
* file that was distributed with this source code.
*/
use App\Http\Middleware\TrustProxies;
use App\Providers\AppServiceProvider;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
@@ -26,7 +27,7 @@ return Application::configure(basePath: dirname(__DIR__))
->withMiddleware(function (Middleware $middleware) {
$middleware->redirectGuestsTo(fn () => route('login'));
$middleware->redirectUsersTo(AppServiceProvider::HOME);
$middleware->trustProxies(at: explode(',', config('cachet.trusted_proxies')));
$middleware->append(TrustProxies::class);
$middleware->throttleApi();
})