添加配置文件可配置项

domain
This commit is contained in:
Chenx221 2024-03-13 18:32:17 +08:00
parent b1f58ca53f
commit 9cd39aae91
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# 这是示例配置文件 # 这是示例配置文件
# 请将其重命名为 .env 并根据需要进行修改 # 请将其重命名为 .env 并根据需要进行修改
DOMAIN= # 网站域名
# 数据库配置 # 数据库配置
DB_HOST=localhost:3306 # 数据库地址 DB_HOST=localhost:3306 # 数据库地址
DB_NAME=yii2basic # 数据库名 DB_NAME=yii2basic # 数据库名

View File

@ -7,6 +7,7 @@ return [
'senderEmail' => 'noreply@example.com', 'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer', 'senderName' => 'Example.com mailer',
// data directory is used to store uploaded files by the user (e.g. root dir for every user's home) // data directory is used to store uploaded files by the user (e.g. root dir for every user's home)
'domain' => $_ENV['DOMAIN'],
'dataDirectory' => '@app/data', 'dataDirectory' => '@app/data',
'verifyProvider' => $_ENV['VERIFY_PROVIDER'], 'verifyProvider' => $_ENV['VERIFY_PROVIDER'],
'reCAPTCHA' => [ 'reCAPTCHA' => [