Update Reverb config to use environment variables
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
<script>
|
||||
window.reverbConfig = {
|
||||
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) }},
|
||||
scheme: '{{ str_starts_with(config('app.url'), 'https') ? 'https' : 'http' }}',
|
||||
forceTLS: {{ str_starts_with(config('app.url'), 'https') ? 'true' : 'false' }},
|
||||
scheme: '{{ env('REVERB_SCHEME', 'https') }}',
|
||||
forceTLS: {{ env('REVERB_SCHEME', 'http') === 'https' ? 'true' : 'false' }},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user