hm
This commit is contained in:
parent
1d2c4fc553
commit
b85a0c4d09
@ -25,9 +25,13 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
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…
x
Reference in New Issue
Block a user