yii2-netdisk/config/params.php

29 lines
950 B
PHP
Raw Permalink Normal View History

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',
'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer',
2024-03-25 15:37:35 +08:00
'bsVersion' => '5.x',
// data directory is used to store uploaded files by the user (e.g. root dir for every user's home)
'domain' => $_ENV['DOMAIN']??null,
'dataDirectory' => '@app/data',
'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
],
'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
];