hm
This commit is contained in:
parent
1d2c4fc553
commit
b85a0c4d09
1 changed files with 7 additions and 3 deletions
|
|
@ -25,9 +25,13 @@ public function register(): void
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
if ($this->app->environment('production')) {
|
if ($this->app->environment('production')) {
|
||||||
$settings = InstanceSettings::first();
|
try {
|
||||||
if (Str::startsWith($settings->fqdn, 'https')) {
|
$settings = InstanceSettings::first();
|
||||||
URL::forceScheme('https');
|
if (Str::startsWith($settings->fqdn, 'https')) {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue