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

47 lines
1.4 KiB
PHP
Raw Normal View History

2025-09-24 06:24:52 +00:00
<?php
return [
'components' => [
2025-10-04 09:16:19 +00:00
'db' => [
2025-09-24 06:24:52 +00:00
'class' => 'yii\db\Connection',
2025-10-03 11:00:05 +00:00
'dsn' => 'sqlsrv:Server=192.168.0.101;Database=prolab_api',
'username' => 'sa',
'password' => '',
2025-09-24 06:24:52 +00:00
'charset' => 'utf8',
],
2025-10-04 09:16:19 +00:00
2025-11-21 04:04:39 +00:00
'prolab' => [
'class' => 'yii\db\Connection',
'dsn' => 'sqlsrv:Server=192.168.0.101;Database=DB_PL',
'username' => 'sa',
'password' => '',
'charset' => 'utf8',
],
2025-12-19 06:18:26 +00:00
2025-12-19 06:15:41 +00:00
'patho' => [
2025-12-19 06:18:26 +00:00
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=172.16.0.7;port=3306;dbname=prolab_main', //161.82.188.168
2025-12-19 06:15:41 +00:00
'username' => 'apiuser',
'password' => 'Aa157344121165',
'charset' => 'utf8',
2025-12-19 06:18:26 +00:00
'attributes' => [
PDO::ATTR_TIMEOUT => 5,
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8",
],
'enableSchemaCache' => true,
'schemaCacheDuration' => 3600,
'schemaCache' => 'cache',
2025-12-19 06:15:41 +00:00
],
2025-09-24 06:24:52 +00:00
'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,
],
],
2025-10-03 11:00:05 +00:00
];