2013-05-24 22:14:49 +08:00
|
|
|
<?php
|
2024-03-05 13:32:12 +08:00
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
|
|
|
$dotenv->load();
|
2013-05-24 22:14:49 +08:00
|
|
|
|
2013-10-18 13:30:41 +08:00
|
|
|
return [
|
2014-03-16 12:46:16 +08:00
|
|
|
'adminEmail' => 'admin@example.com',
|
2019-04-23 20:11:10 +08: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-14 20:27:23 +08:00
|
|
|
'domain' => $_ENV['DOMAIN']??null,
|
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 13:30:41 +08:00
|
|
|
];
|