hm
This commit is contained in:
@@ -25,9 +25,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
if ($this->app->environment('production')) {
|
||||
$settings = InstanceSettings::first();
|
||||
if (Str::startsWith($settings->fqdn, 'https')) {
|
||||
URL::forceScheme('https');
|
||||
try {
|
||||
$settings = InstanceSettings::first();
|
||||
if (Str::startsWith($settings->fqdn, 'https')) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user