From 9cd39aae91a5f859e1e253ad68e01aa695123842 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Wed, 13 Mar 2024 18:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8F=AF=E9=85=8D=E7=BD=AE=E9=A1=B9=20domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 +- config/params.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index ca888ee..ebea945 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ # 这是示例配置文件 # 请将其重命名为 .env 并根据需要进行修改 - +DOMAIN= # 网站域名 # 数据库配置 DB_HOST=localhost:3306 # 数据库地址 DB_NAME=yii2basic # 数据库名 diff --git a/config/params.php b/config/params.php index 7a63b64..d81cc2a 100644 --- a/config/params.php +++ b/config/params.php @@ -7,6 +7,7 @@ return [ '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) + 'domain' => $_ENV['DOMAIN'], 'dataDirectory' => '@app/data', 'verifyProvider' => $_ENV['VERIFY_PROVIDER'], 'reCAPTCHA' => [