<?php

return [

    'default' => env('REVERB_SERVER', 'reverb'),

    'servers' => [

        'reverb' => [
            'host'     => env('REVERB_HOST', '0.0.0.0'),
            'port'     => env('REVERB_PORT', 8080),
            'scheme'   => env('REVERB_SCHEME', 'http'),
            // hostname = the public domain clients use to reach Reverb (via Nginx proxy).
            // Production: api.svishtov.bg  |  Local Docker: localhost
            'hostname' => env('REVERB_SERVER_HOSTNAME', '127.0.0.1'),
            'options'  => [
                'tls' => [],
            ],
            'scaling' => [
                'enabled'    => false,
                'channel'    => 'reverb',
                'connection' => null,
            ],
            'pulse_ingest_interval' => env('REVERB_PULSE_INGEST_INTERVAL', 15),
        ],

    ],

    'apps' => [

        'provider' => 'config',

        'apps' => [
            [
                'key'                    => env('REVERB_APP_KEY', 'svishtov-live-key'),
                'secret'                 => env('REVERB_APP_SECRET', 'svishtov-live-secret'),
                'app_id'                 => env('REVERB_APP_ID', 'svishtov-live'),
                'options'                => [
                    'host'   => env('REVERB_HOST', 'localhost'),
                    'port'   => env('REVERB_PORT', 8080),
                    'scheme' => env('REVERB_SCHEME', 'http'),
                ],
                'allowed_origins'        => ['*'],
                'ping_interval'          => 60,
                'activity_timeout'       => 30,
                'max_message_size'       => 10_000,
            ],
        ],

    ],

];
