chore: update .env.example with Reverb TLS configuration
This commit is contained in:
@@ -73,9 +73,11 @@ EMAIL_BODY_TTL_SECONDS=259200
|
|||||||
REVERB_APP_ID=imail-local
|
REVERB_APP_ID=imail-local
|
||||||
REVERB_APP_KEY=imail-local-key
|
REVERB_APP_KEY=imail-local-key
|
||||||
REVERB_APP_SECRET=imail-local-secret
|
REVERB_APP_SECRET=imail-local-secret
|
||||||
REVERB_HOST=localhost
|
REVERB_HOST=imail.app
|
||||||
REVERB_PORT=8080
|
REVERB_PORT=8080
|
||||||
REVERB_SCHEME=http
|
REVERB_SCHEME=https
|
||||||
|
REVERB_TLS_CERT="D:/laragon/etc/ssl/laragon.crt"
|
||||||
|
REVERB_TLS_KEY="D:/laragon/etc/ssl/laragon.key"
|
||||||
|
|
||||||
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
|
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
|
||||||
VITE_REVERB_HOST="${REVERB_HOST}"
|
VITE_REVERB_HOST="${REVERB_HOST}"
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ return [
|
|||||||
'path' => env('REVERB_SERVER_PATH', ''),
|
'path' => env('REVERB_SERVER_PATH', ''),
|
||||||
'hostname' => env('REVERB_HOST'),
|
'hostname' => env('REVERB_HOST'),
|
||||||
'options' => [
|
'options' => [
|
||||||
'tls' => [],
|
'tls' => env('REVERB_TLS_CERT') ? [
|
||||||
|
'local_cert' => env('REVERB_TLS_CERT'),
|
||||||
|
'local_pk' => env('REVERB_TLS_KEY'),
|
||||||
|
'verify_peer' => false,
|
||||||
|
] : [],
|
||||||
],
|
],
|
||||||
'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000),
|
'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000),
|
||||||
'scaling' => [
|
'scaling' => [
|
||||||
|
|||||||
@@ -3,12 +3,18 @@ import Echo from 'laravel-echo';
|
|||||||
import Pusher from 'pusher-js';
|
import Pusher from 'pusher-js';
|
||||||
window.Pusher = Pusher;
|
window.Pusher = Pusher;
|
||||||
|
|
||||||
window.Echo = new Echo({
|
window.startReverb = function () {
|
||||||
broadcaster: 'reverb',
|
if (window.Echo) return window.Echo;
|
||||||
key: import.meta.env.VITE_REVERB_APP_KEY,
|
|
||||||
wsHost: import.meta.env.VITE_REVERB_HOST,
|
window.Echo = new Echo({
|
||||||
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
|
broadcaster: 'reverb',
|
||||||
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
|
key: import.meta.env.VITE_REVERB_APP_KEY,
|
||||||
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
|
wsHost: import.meta.env.VITE_REVERB_HOST,
|
||||||
enabledTransports: ['ws', 'wss'],
|
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
|
||||||
});
|
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
|
||||||
|
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
|
||||||
|
enabledTransports: ['ws', 'wss'],
|
||||||
|
});
|
||||||
|
|
||||||
|
return window.Echo;
|
||||||
|
};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
x-init="$watch('selectedId', value => { if(value && window.innerWidth < 1024) mobileView = 'detail' }); $watch('mobileView', value => { if(value === 'list' && window.innerWidth < 1024) selectedId = null })"
|
x-init="window.startReverb(); $watch('selectedId', value => { if(value && window.innerWidth < 1024) mobileView = 'detail' }); $watch('mobileView', value => { if(value === 'list' && window.innerWidth < 1024) selectedId = null })"
|
||||||
@resize.window="if (window.innerWidth >= 1280) sidebarOpen = true">
|
@resize.window="if (window.innerWidth >= 1280) sidebarOpen = true">
|
||||||
|
|
||||||
<!-- Global Confirmation Modal -->
|
<!-- Global Confirmation Modal -->
|
||||||
|
|||||||
Reference in New Issue
Block a user