fix
This commit is contained in:
parent
ec5cca7b3e
commit
8a80dbd5d8
@ -42,7 +42,7 @@ class InstanceSettings extends Model implements SendsEmail
|
|||||||
ray($url);
|
ray($url);
|
||||||
$port = $url->getPort();
|
$port = $url->getPort();
|
||||||
if ($port) {
|
if ($port) {
|
||||||
return 6001;
|
return '6001';
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
])->baseUrl($api_url);
|
])->baseUrl($api_url);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
view()->share('realtimePort', \App\Models\InstanceSettings::realtimePort() );
|
Config::set('realtime.port', \App\Models\InstanceSettings::realtimePort());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,8 +52,8 @@
|
|||||||
cluster: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
|
cluster: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
|
||||||
key: "{{ env('PUSHER_APP_KEY') }}" || 'coolify',
|
key: "{{ env('PUSHER_APP_KEY') }}" || 'coolify',
|
||||||
wsHost: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
|
wsHost: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
|
||||||
wsPort: "{{ $realtimePort }}",
|
wsPort: "{{ config('realtime.port') }}",
|
||||||
wssPort: "{{ $realtimePort }}",
|
wssPort: "{{ config('realtime.port') }}",
|
||||||
forceTLS: false,
|
forceTLS: false,
|
||||||
encrypted: true,
|
encrypted: true,
|
||||||
enableStats: false,
|
enableStats: false,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<span x-data x-init="$wire.emit('error', '{{ session('error') }}')" />
|
<span x-data x-init="$wire.emit('error', '{{ session('error') }}')" />
|
||||||
@endif
|
@endif
|
||||||
<h1>Dashboard</h1>
|
<h1>Dashboard</h1>
|
||||||
Realtime Port: {{ $realtimePort ?? 'Not set' }}
|
Realtime Port: {{ config('realtime.port') ?? 'Not set' }}
|
||||||
|
|
||||||
<div class="subtitle">Your self-hosted environment</div>
|
<div class="subtitle">Your self-hosted environment</div>
|
||||||
@if (request()->query->get('success'))
|
@if (request()->query->get('success'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user