Update Reverb config to use environment variables
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user