Skip to content

Commit

Permalink
Merge pull request #5 from inovector/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
lao9s authored Oct 31, 2024
2 parents 3033e0e + 461cfdb commit 3adcfc1
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 18 deletions.
17 changes: 16 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,19 @@ AWS_DEFAULT_REGION=
AWS_BUCKET=

# Sentry
SENTRY_LARAVEL_DSN=null
SENTRY_LARAVEL_DSN=null

# Broadcasting
BROADCAST_DRIVER=null

REVERB_APP_ID=
REVERB_APP_KEY=
REVERB_APP_SECRET=
REVERB_HOST="example.com"
REVERB_PORT=80
REVERB_SCHEME=https

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
3 changes: 3 additions & 0 deletions app/Providers/BroadcastServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Providers;

use Illuminate\Support\Facades\Broadcast;
use Inovector\Mixpost\Broadcast as MixpostBroadcast;
use Illuminate\Support\ServiceProvider;

class BroadcastServiceProvider extends ServiceProvider
Expand All @@ -14,6 +15,8 @@ public function boot(): void
{
Broadcast::routes();

MixpostBroadcast::routes();

require base_path('routes/channels.php');
}
}
9 changes: 1 addition & 8 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

namespace App\Providers;

use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;

class EventServiceProvider extends ServiceProvider
{
Expand All @@ -14,11 +11,7 @@ class EventServiceProvider extends ServiceProvider
*
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
protected $listen = [];

/**
* Register any events for your application.
Expand Down
17 changes: 9 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "inovector/mixpost-enterprise-app",
"type": "project",
"description": "Standalone application with Mixpost Enterprise's Laravel package pre-installed and configured",
"description": "Standalone application with Mixpost Enterprise's Laravel package pre-installed and configured.",
"keywords": ["inovector", "mixpost", "mixpost-enterpsie", "mixpost-saas"],
"repositories": [
{
Expand All @@ -10,21 +10,22 @@
}
],
"require": {
"php": "^8.1",
"doctrine/dbal": "^3.6",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.2",
"inovector/mixpost-enterprise": "^3.0",
"laravel/framework": "^10.8",
"inovector/mixpost-enterprise": "^4.0",
"laravel/framework": "^11.0",
"laravel/horizon": "^5.15",
"laravel/reverb": "^1.0",
"laravel/tinker": "^2.8",
"sentry/sentry-laravel": "^3.8",
"sentry/sentry-laravel": "^4.9",
"league/flysystem-aws-s3-v3": "^3.0",
"league/flysystem-sftp-v3": "^3.0"
"league/flysystem-sftp-v3": "^3.0",
"pusher/pusher-php-server": "^7.2"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\HorizonServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Expand Down
92 changes: 92 additions & 0 deletions config/reverb.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Default Reverb Server
|--------------------------------------------------------------------------
|
| This option controls the default server used by Reverb to handle
| incoming messages as well as broadcasting message to all your
| connected clients. At this time only "reverb" is supported.
|
*/

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

/*
|--------------------------------------------------------------------------
| Reverb Servers
|--------------------------------------------------------------------------
|
| Here you may define details for each of the supported Reverb servers.
| Each server has its own configuration options that are defined in
| the array below. You should ensure all the options are present.
|
*/

'servers' => [

'reverb' => [
'host' => env('REVERB_SERVER_HOST', '0.0.0.0'),
'port' => env('REVERB_SERVER_PORT', 8080),
'hostname' => env('REVERB_HOST'),
'options' => [
'tls' => [],
],
'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000),
'scaling' => [
'enabled' => env('REVERB_SCALING_ENABLED', false),
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
'server' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'port' => env('REDIS_PORT', '6379'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'database' => env('REDIS_DB', '0'),
],
],
'pulse_ingest_interval' => env('REVERB_PULSE_INGEST_INTERVAL', 15),
'telescope_ingest_interval' => env('REVERB_TELESCOPE_INGEST_INTERVAL', 15),
],

],

/*
|--------------------------------------------------------------------------
| Reverb Applications
|--------------------------------------------------------------------------
|
| Here you may define how Reverb applications are managed. If you choose
| to use the "config" provider, you may define an array of apps which
| your server will support, including their connection credentials.
|
*/

'apps' => [

'provider' => 'config',

'apps' => [
[
'key' => env('REVERB_APP_KEY'),
'secret' => env('REVERB_APP_SECRET'),
'app_id' => env('REVERB_APP_ID'),
'options' => [
'host' => env('REVERB_HOST'),
'port' => env('REVERB_PORT', 443),
'scheme' => env('REVERB_SCHEME', 'https'),
'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
],
'allowed_origins' => ['*'],
'ping_interval' => env('REVERB_APP_PING_INTERVAL', 60),
'activity_timeout' => env('REVERB_APP_ACTIVITY_TIMEOUT', 30),
'max_message_size' => env('REVERB_APP_MAX_MESSAGE_SIZE', 10_000),
],
],

],

];

0 comments on commit 3adcfc1

Please sign in to comment.