添加配置文件可配置项
domain
This commit is contained in:
parent
b1f58ca53f
commit
9cd39aae91
@ -1,6 +1,6 @@
|
|||||||
# 这是示例配置文件
|
# 这是示例配置文件
|
||||||
# 请将其重命名为 .env 并根据需要进行修改
|
# 请将其重命名为 .env 并根据需要进行修改
|
||||||
|
DOMAIN= # 网站域名
|
||||||
# 数据库配置
|
# 数据库配置
|
||||||
DB_HOST=localhost:3306 # 数据库地址
|
DB_HOST=localhost:3306 # 数据库地址
|
||||||
DB_NAME=yii2basic # 数据库名
|
DB_NAME=yii2basic # 数据库名
|
||||||
|
@ -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' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user