Update Reverb config to use environment variables

This commit is contained in:
Fernando
2026-05-09 01:42:36 -06:00
committed by GitHub
parent 2f7f797b86
commit 7c6e42ef89
+3 -3
View File
@@ -32,10 +32,10 @@
<script> <script>
window.reverbConfig = { window.reverbConfig = {
key: '{{ config('reverb.apps.apps.0.key') }}', key: '{{ config('reverb.apps.apps.0.key') }}',
host: '{{ parse_url(config('app.url'), PHP_URL_HOST) }}', host: '{{ env('REVERB_HOST', parse_url(config('app.url'), PHP_URL_HOST)) }}',
port: {{ env('REVERB_PORT', 8080) }}, port: {{ env('REVERB_PORT', 8080) }},
scheme: '{{ str_starts_with(config('app.url'), 'https') ? 'https' : 'http' }}', scheme: '{{ env('REVERB_SCHEME', 'https') }}',
forceTLS: {{ str_starts_with(config('app.url'), 'https') ? 'true' : 'false' }}, forceTLS: {{ env('REVERB_SCHEME', 'http') === 'https' ? 'true' : 'false' }},
}; };
</script> </script>