reverb.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Reverb Server
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default server used by Reverb to handle
  9. | incoming messages as well as broadcasting message to all your
  10. | connected clients. At this time only "reverb" is supported.
  11. |
  12. */
  13. 'default' => env('REVERB_SERVER', 'reverb'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Reverb Servers
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may define details for each of the supported Reverb servers.
  20. | Each server has its own configuration options that are defined in
  21. | the array below. You should ensure all the options are present.
  22. |
  23. */
  24. 'servers' => [
  25. 'reverb' => [
  26. 'host' => env('REVERB_SERVER_HOST', '0.0.0.0'),
  27. 'port' => env('REVERB_SERVER_PORT', 8080),
  28. 'path' => env('REVERB_SERVER_PATH', ''),
  29. 'hostname' => env('REVERB_HOST'),
  30. 'options' => [
  31. 'tls' => [],
  32. ],
  33. 'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000),
  34. 'scaling' => [
  35. 'enabled' => env('REVERB_SCALING_ENABLED', false),
  36. 'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
  37. 'server' => [
  38. 'url' => env('REDIS_URL'),
  39. 'host' => env('REDIS_HOST', '127.0.0.1'),
  40. 'port' => env('REDIS_PORT', '6379'),
  41. 'username' => env('REDIS_USERNAME'),
  42. 'password' => env('REDIS_PASSWORD'),
  43. 'database' => env('REDIS_DB', '0'),
  44. 'timeout' => env('REDIS_TIMEOUT', 60),
  45. ],
  46. ],
  47. 'pulse_ingest_interval' => env('REVERB_PULSE_INGEST_INTERVAL', 15),
  48. 'telescope_ingest_interval' => env('REVERB_TELESCOPE_INGEST_INTERVAL', 15),
  49. ],
  50. ],
  51. /*
  52. |--------------------------------------------------------------------------
  53. | Reverb Applications
  54. |--------------------------------------------------------------------------
  55. |
  56. | Here you may define how Reverb applications are managed. If you choose
  57. | to use the "config" provider, you may define an array of apps which
  58. | your server will support, including their connection credentials.
  59. |
  60. */
  61. 'apps' => [
  62. 'provider' => 'config',
  63. 'apps' => [
  64. [
  65. 'key' => env('REVERB_APP_KEY'),
  66. 'secret' => env('REVERB_APP_SECRET'),
  67. 'app_id' => env('REVERB_APP_ID'),
  68. 'options' => [
  69. 'host' => env('REVERB_HOST'),
  70. 'port' => env('REVERB_PORT', env('FORCE_HTTPS', true) ? 443 : 80),
  71. 'scheme' => env('FORCE_HTTPS', true) ? 'https' : 'http',
  72. 'useTLS' => env('FORCE_HTTPS', true),
  73. ],
  74. 'allowed_origins' => ['*'],
  75. 'ping_interval' => env('REVERB_APP_PING_INTERVAL', 60),
  76. 'activity_timeout' => env('REVERB_APP_ACTIVITY_TIMEOUT', 30),
  77. 'max_connections' => env('REVERB_APP_MAX_CONNECTIONS'),
  78. 'max_message_size' => env('REVERB_APP_MAX_MESSAGE_SIZE', 10_000),
  79. ],
  80. ],
  81. ],
  82. ];