yii2-netdisk/config/params.php
Chenx221 ae7e3ae7a9
移动一些敏感的数据到.env
.env.example为示例配置文件
用法自己看文件内容
2024-02-27 15:40:19 +08:00

23 lines
707 B
PHP

<?php
return [
'adminEmail' => 'admin@example.com',
'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer',
// data directory is used to store uploaded files by the user (e.g. root dir for every user's home)
'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'],
]
];