Read missing force https

This commit is contained in:
Jérémy Munsch 2023-09-04 15:49:16 +02:00
parent 752f202c62
commit 1fba092fc3
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -5,6 +5,7 @@ namespace App\Providers;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -17,7 +18,7 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
// * HTTPS FIX
// URL::forceScheme('http');
URL::forceScheme('https');
// * HA PROXY FIX
App::singleton('clientIp', function () {
if (config('app.env') === 'local') {