This commit is contained in:
mcndave committed 2023-05-31 18:11:38 +00:00
commit 4404943f8b
3 files changed
+16 -4

No files matched your search

+8
View File
@@ -17,6 +17,14 @@ return [
'application_name' => "",
],
'api' => [
'auth' => [
'type' => \CSLSJ\Api\AuthType::AUTH_HEADER_BASIC,
'username' => getenv('CSSLSJ_API_USERNAME'),
'password' => getenv('CSSLSJ_API_PASSWORD'),
]
],
'ulmus' => [
'connections' => [
'default' => [
+5 -1
View File
@@ -50,9 +50,13 @@ return [
};
},
CSLSJ\Api\Client::class => create(CSLSJ\Api\Client::class)->constructor(get('api.authentication'), getenv('CSSLSJ_API_URL')),
'api.authentication' => function ($c) { return $c->get('config')['api']['auth']; },
EmailConfiguration::class => function($c) {
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
$email->smtpHost = getenv('SMTP_HOST');
$email->smtpHost = getenv('SMTP_HOSTNAME');
$email->smtpPort = getenv('SMTP_PORT');
$email->smtpUsername = getenv('SMTP_USERNAME');
$email->smtpPassword = getenv('SMTP_PASSWORD');