mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
hm
This commit is contained in:
1 parent
1d2c4fc553
commit
b85a0c4d09
1 file changed
+7
-3
@@ -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