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

36 lines
1.1 KiB
PHP
Raw Normal View History

2025-09-24 06:24:52 +00:00
<?php
return [
'components' => [
/*'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=uttaradit_main',
'username' => 'uttaradit_main',
'password' => 'Uu157344121165',
'charset' => 'utf8',
'enableSchemaCache' => false,
'schemaCacheDuration' => 3600,
'schemaCache' => 'cache',
],*/
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=mariadb;dbname=uttaradit_main',
'username' => 'root',
'password' => 'Uu157344121165',
'charset' => 'utf8',
'enableSchemaCache' => false,
'schemaCacheDuration' => 3600,
'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,
],
],
];