This commit is contained in:
Chimezie Enyinnaya
2024-09-10 15:10:14 +01:00
parent 4fbee37563
commit e8bc2dc107
2 changed files with 4 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
// if ($this->app->environment('production')) {
// URL::forceScheme('https');
// };
if ($this->app->environment('production')) {
URL::forceScheme('https');
};
}
}

View File

@@ -11,7 +11,7 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: ['84.247.135.201']);
$middleware->trustProxies(at: '*');
})
->withExceptions(function (Exceptions $exceptions) {
//