使用.env中设定的站点标题

This commit is contained in:
Chenx221 2024-03-30 13:43:33 +08:00
parent 72cce4f32d
commit 83169ab5d5
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -9,7 +9,7 @@ $db = require __DIR__ . '/db.php';
$config = [
'id' => 'basic',
'name' =>'网盘',
'name' => $_ENV['SITE_TITLE'],
// 'language' => 'zh-CN',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
@ -84,7 +84,7 @@ if (YII_ENV_DEV) {
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
'allowedIPs' => ['127.0.0.1', '::1','192.168.1.*'],
'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.*'],
];
$config['bootstrap'][] = 'gii';