This commit is contained in:
Andras Bacsai 2023-05-26 12:34:15 +02:00
parent 0bd7d99dd9
commit 1d2c4fc553

View File

@ -24,9 +24,11 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot(): void
{
$settings = InstanceSettings::first();
if ($this->app->environment('local') && Str::startsWith($settings->fqdn, 'https')) {
URL::forceScheme('https');
if ($this->app->environment('production')) {
$settings = InstanceSettings::first();
if (Str::startsWith($settings->fqdn, 'https')) {
URL::forceScheme('https');
}
}
}
}