This commit is contained in:
Andras Bacsai
2023-12-11 19:46:46 +01:00
parent a19a58338c
commit 4f800f5331
4 changed files with 5 additions and 4 deletions

View File

@@ -30,6 +30,6 @@ class AppServiceProvider extends ServiceProvider
])->baseUrl($api_url); ])->baseUrl($api_url);
} }
}); });
Config::set('realtime.port', \App\Models\InstanceSettings::realtimePort()); Config::set('coolify.realtime_port', \App\Models\InstanceSettings::realtimePort());
} }
} }

View File

@@ -2,6 +2,7 @@
return [ return [
'docs' => 'https://coolify.io/docs/contact', 'docs' => 'https://coolify.io/docs/contact',
'realtime_port' => "6001",
'self_hosted' => env('SELF_HOSTED', true), 'self_hosted' => env('SELF_HOSTED', true),
'waitlist' => env('WAITLIST', false), 'waitlist' => env('WAITLIST', false),
'license_url' => 'https://licenses.coollabs.io', 'license_url' => 'https://licenses.coollabs.io',

View File

@@ -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: "{{ config('realtime.port') }}", wsPort: "{{ config('coolify.realtime_port') }}",
wssPort: "{{ config('realtime.port') }}", wssPort: "{{ config('coolify.realtime_port') }}",
forceTLS: false, forceTLS: false,
encrypted: true, encrypted: true,
enableStats: false, enableStats: false,

View File

@@ -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: {{ config('realtime.port') ?? 'Not set' }} Realtime Port: {{ config('coolify.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'))