prolab-api/common/config/main-local.php

45 lines
1.3 KiB
PHP
Executable File

<?php
return [
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlsrv:Server=192.168.0.101;Database=prolab_api',
'username' => 'sa',
'password' => '',
'charset' => 'utf8',
],
'prolab' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlsrv:Server=192.168.0.101;Database=DB_PL',
'username' => 'sa',
'password' => '',
'charset' => 'utf8',
],
'patho' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=161.82.188.168;dbname=prolab_main',
'username' => 'apiuser',
'password' => 'Aa157344121165',
'charset' => 'utf8',
'enableSchemaCache' => true,
// Duration of schema cache.
'schemaCacheDuration' => 3600,
// Name of the cache component used to store schema information
'schemaCache' => 'cache',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
],
],
];