This commit is contained in:
2022-11-25 20:52:46 -03:00
parent 11d8479a0c
commit dd0410a0fb
15 changed files with 325 additions and 50 deletions

View File

@ -1,16 +1,5 @@
<?php
return [
'email' => function() {
$data = [
'host' => $_ENV['EMAIL_HOST'],
'username' => $_ENV['EMAIL_USERNAME'],
'password' => $_ENV['EMAIL_PASSWORD'],
'folder' => $_ENV['EMAIL_FOLDER'],
'attachments' => $_ENV['ATTACHMENTS_FOLDER'],
];
if (isset($_ENV['EMAIL_PORT'])) {
$data['port'] = $_ENV['EMAIL_PORT'];
}
return json_decode(json_encode($data));
}
'api_uri' => $_ENV['API_URI'],
'api_key' => sha1($_ENV['API_KEY'])
];