fix: pusher host

This commit is contained in:
Andras Bacsai
2023-12-11 16:32:41 +01:00
parent 47202a7951
commit 35134f2327
4 changed files with 7 additions and 6 deletions

View File

@@ -44,15 +44,16 @@
</dialog>
<x-toaster-hub />
<x-version class="fixed left-2 bottom-1" />
<script data-navigate-once>
@auth
window.Pusher = Pusher;
window.Echo = new Echo({
broadcaster: 'pusher',
cluster: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
cluster: "{{ env('PUSHER_HOST') }}" || "{{ App\Models\InstanceSettings::get()->public_ipv4 }}" || window
.location.hostname,
key: "{{ env('PUSHER_APP_KEY') }}" || 'coolify',
wsHost: "{{ env('PUSHER_HOST') }}" || window.location.hostname,
wsHost: "{{ env('PUSHER_HOST') }}" || "{{ App\Models\InstanceSettings::get()->public_ipv4 }}" || window
.location.hostname,
wsPort: "{{ env('PUSHER_PORT') }}" || 6001,
wssPort: "{{ env('PUSHER_PORT') }}" || 6001,
forceTLS: false,