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 public function boot(): void
{ {
$settings = InstanceSettings::first(); if ($this->app->environment('production')) {
if ($this->app->environment('local') && Str::startsWith($settings->fqdn, 'https')) { $settings = InstanceSettings::first();
URL::forceScheme('https'); if (Str::startsWith($settings->fqdn, 'https')) {
URL::forceScheme('https');
}
} }
} }
} }