Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (33 sloc) 1.16 KB
<?php
declare(strict_types = 1);
namespace App\Config;
use App\Api\Aggregate;
use App\Api\Command;
use App\Api\Event;
use App\Api\Listener;
use App\Api\Projection;
use App\Api\Query;
use App\Api\Type;
return [
'environment' => getenv('PROOPH_ENV')?: 'prod',
'pdo' => [
'dsn' => getenv('PDO_DSN'),
'user' => getenv('PDO_USER'),
'pwd' => getenv('PDO_PWD'),
],
'rabbit' => [
'connection' => [
'host' => getenv('RABBIT_HOST')?: 'rabbit',
'port' => (int)getenv('RABBIT_PORT')?: 5672,
'login' => getenv('RABBIT_USER')?: 'event-engine',
'password' => getenv('RABBIT_PWD')?: 'event-engine',
'vhost' => getenv('RABBIT_VHOST')?: '/event-engine',
'persistent' => (bool)getenv('RABBIT_PERSISTENT')?: false,
'read_timeout' => (int)getenv('RABBIT_READ_TIMEOUT')?: 1, //sec, float allowed
'write_timeout' => (int)getenv('RABBIT_WRITE_TIMEOUT')?: 1, //sec, float allowed,
'heartbeat' => (int)getenv('RABBIT_HEARTBEAT')?: 0,
'verify' => false
],
'ui_exchange' => getenv('RABBIT_UI_EXCHANGE')?: 'ui-exchange',
],
];
You can’t perform that action at this time.