mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
add optional force https config
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
use App\Models\PersonalAccessToken;
|
||||
use App\Plugins\Plugins;
|
||||
use Illuminate\Http\Resources\Json\ResourceCollection;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Fortify\Fortify;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
@ -33,5 +34,9 @@ public function boot(): void
|
||||
$this->app->bind('plugins', fn (): Plugins => new Plugins);
|
||||
|
||||
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
|
||||
|
||||
if (config('app.force_https')) {
|
||||
URL::forceHttps();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -221,4 +221,6 @@
|
||||
'version' => '3.0.0-alpha-1',
|
||||
|
||||
'demo' => env('APP_DEMO', false),
|
||||
|
||||
'force_https' => env('FORCE_HTTPS', false),
|
||||
];
|
||||
|
Reference in New Issue
Block a user