mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 22:15:35 +00:00
fix
This commit is contained in:
1 parent
4f800f5331
commit
d79da996d3
6 files changed
+20
-23
No files matched your search
@@ -32,24 +32,6 @@ class InstanceSettings extends Model implements SendsEmail
|
||||
}
|
||||
);
|
||||
}
|
||||
public static function realtimePort()
|
||||
{
|
||||
$envDefined = env('PUSHER_PORT');
|
||||
if ($envDefined != '6001') {
|
||||
return $envDefined;
|
||||
}
|
||||
$url = Url::fromString(Request::getSchemeAndHttpHost());
|
||||
Log::info(Request::getSchemeAndHttpHost());
|
||||
Log::info($url);
|
||||
$scheme = $url->getScheme();
|
||||
ray($url);
|
||||
$port = $url->getPort();
|
||||
if ($port) {
|
||||
return '6001';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public static function get()
|
||||
{
|
||||
return InstanceSettings::findOrFail(0);
|
||||
|
||||
Reference in new issue
Block a user