Отправка всех email вынесена в очередь

This commit is contained in:
ErickSkrauch
2017-11-26 04:44:41 +03:00
parent 4d48b38e47
commit 88175fea48
17 changed files with 253 additions and 85 deletions

View File

@@ -96,6 +96,16 @@ return [
'port' => getenv('STATSD_PORT') ?: 8125,
'namespace' => getenv('STATSD_NAMESPACE') ?: 'ely.accounts.' . gethostname() . '.app',
],
'queue' => [
'class' => yii\queue\amqp\Queue::class,
'host' => getenv('RABBITMQ_HOST') ?: 'rabbitmq',
'port' => getenv('RABBITMQ_PORT') ?: 5672,
'user' => getenv('RABBITMQ_USER'),
'password' => getenv('RABBITMQ_PASS'),
'vhost' => getenv('RABBITMQ_VHOST'),
'queueName' => 'worker',
'exchangeName' => 'tasks',
],
],
'container' => [
'definitions' => [