This commit is contained in:
Andras Bacsai 2023-12-11 19:36:44 +01:00
parent ec5cca7b3e
commit 8a80dbd5d8
4 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ public static function realtimePort()
ray($url);
$port = $url->getPort();
if ($port) {
return 6001;
return '6001';
} else {
return null;
}

View File

@ -30,6 +30,6 @@ public function boot(): void
])->baseUrl($api_url);
}
});
view()->share('realtimePort', \App\Models\InstanceSettings::realtimePort() );
Config::set('realtime.port', \App\Models\InstanceSettings::realtimePort());
}
}

View File

@ -52,8 +52,8 @@
cluster: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
key: "{{ env('PUSHER_APP_KEY') }}" || 'coolify',
wsHost: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
wsPort: "{{ $realtimePort }}",
wssPort: "{{ $realtimePort }}",
wsPort: "{{ config('realtime.port') }}",
wssPort: "{{ config('realtime.port') }}",
forceTLS: false,
encrypted: true,
enableStats: false,

View File

@ -3,7 +3,7 @@
<span x-data x-init="$wire.emit('error', '{{ session('error') }}')" />
@endif
<h1>Dashboard</h1>
Realtime Port: {{ $realtimePort ?? 'Not set' }}
Realtime Port: {{ config('realtime.port') ?? 'Not set' }}
<div class="subtitle">Your self-hosted environment</div>
@if (request()->query->get('success'))