yii2-netdisk/config/params.php
Chenx221 4d9f8dca8f
新增参数
允许关闭ipinfo获取ip地理位置服务
方法见.env.example
2024-03-02 15:48:03 +08:00

25 lines
809 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'],
],
'enableIpInfo' => $_ENV['ENABLE_IPINFO'] === 'true',
'ipinfoToken' => $_ENV['IPINFO_TOKEN'],
];