2013-05-24 10:14:49 -04:00
|
|
|
<?php
|
2024-03-05 13:32:12 +08:00
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
|
|
|
$dotenv->load();
|
2013-05-24 10:14:49 -04:00
|
|
|
|
2013-10-18 07:30:41 +02:00
|
|
|
return [
|
2014-03-16 10:46:16 +06:00
|
|
|
'adminEmail' => 'admin@example.com',
|
2019-04-23 15:11:10 +03:00
|
|
|
'senderEmail' => 'noreply@example.com',
|
|
|
|
'senderName' => 'Example.com mailer',
|
2024-02-10 17:41:07 +08:00
|
|
|
// data directory is used to store uploaded files by the user (e.g. root dir for every user's home)
|
2024-03-13 18:32:17 +08:00
|
|
|
'domain' => $_ENV['DOMAIN'],
|
2024-02-10 17:41:07 +08:00
|
|
|
'dataDirectory' => '@app/data',
|
2024-02-27 15:40:19 +08:00
|
|
|
'verifyProvider' => $_ENV['VERIFY_PROVIDER'],
|
|
|
|
'reCAPTCHA' => [
|
|
|
|
'siteKey' => $_ENV['RECAPTCHA_SITE_KEY'],
|
|
|
|
'secret' => $_ENV['RECAPTCHA_SECRET'],
|
|
|
|
],
|
|
|
|
'hCaptcha' => [
|
|
|
|
'siteKey' => $_ENV['HCAPTCHA_SITE_KEY'],
|
|
|
|
'secret' => $_ENV['HCAPTCHA_SECRET'],
|
|
|
|
],
|
|
|
|
'Turnstile' => [
|
|
|
|
'siteKey' => $_ENV['TURNSTILE_SITE_KEY'],
|
|
|
|
'secret' => $_ENV['TURNSTILE_SECRET'],
|
2024-03-01 18:02:13 +08:00
|
|
|
],
|
2024-03-02 15:48:03 +08:00
|
|
|
'enableIpInfo' => $_ENV['ENABLE_IPINFO'] === 'true',
|
2024-03-01 18:02:13 +08:00
|
|
|
'ipinfoToken' => $_ENV['IPINFO_TOKEN'],
|
2013-10-18 07:30:41 +02:00
|
|
|
];
|