mirror of
https://github.com/elyby/accounts.git
synced 2024-11-16 10:14:02 +05:30
54 lines
1.7 KiB
PHP
54 lines
1.7 KiB
PHP
<?php
|
|
return [
|
|
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
|
'components' => [
|
|
'cache' => [
|
|
'class' => common\components\Redis\Cache::class,
|
|
'redis' => 'redis',
|
|
],
|
|
'db' => [
|
|
'class' => yii\db\Connection::class,
|
|
'dsn' => 'mysql:host=db;dbname=' . getenv('MYSQL_DATABASE'),
|
|
'username' => getenv('MYSQL_USER'),
|
|
'password' => getenv('MYSQL_PASSWORD'),
|
|
'charset' => 'utf8',
|
|
'schemaMap' => [
|
|
'mysql' => common\db\mysql\Schema::class,
|
|
],
|
|
],
|
|
'mailer' => [
|
|
'class' => yii\swiftmailer\Mailer::class,
|
|
'viewPath' => '@common/mail',
|
|
],
|
|
'security' => [
|
|
'passwordHashStrategy' => 'password_hash',
|
|
],
|
|
'redis' => [
|
|
'class' => common\components\Redis\Connection::class,
|
|
'hostname' => 'redis',
|
|
'password' => null,
|
|
'port' => 6379,
|
|
'database' => 0,
|
|
],
|
|
'amqp' => [
|
|
'class' => common\components\RabbitMQ\Component::class,
|
|
'host' => 'rabbitmq',
|
|
'port' => 5672,
|
|
'user' => getenv('RABBITMQ_DEFAULT_USER'),
|
|
'password' => getenv('RABBITMQ_DEFAULT_PASS'),
|
|
'vhost' => getenv('RABBITMQ_DEFAULT_VHOST'),
|
|
],
|
|
'guzzle' => [
|
|
'class' => GuzzleHttp\Client::class,
|
|
],
|
|
'emailRenderer' => [
|
|
'class' => common\components\EmailRenderer::class,
|
|
'basePath' => '/images/emails',
|
|
],
|
|
],
|
|
'aliases' => [
|
|
'@bower' => '@vendor/bower-asset',
|
|
'@npm' => '@vendor/npm-asset',
|
|
],
|
|
];
|