hyperf-chat/config/config.php

44 lines
1.0 KiB
PHP
Raw Normal View History

2020-11-02 22:45:37 +08:00
<?php
declare(strict_types=1);
2020-11-21 19:53:01 +08:00
2020-11-02 22:45:37 +08:00
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
2020-11-21 19:53:01 +08:00
2020-11-02 22:45:37 +08:00
use Hyperf\Contract\StdoutLoggerInterface;
use Psr\Log\LogLevel;
return [
2021-04-20 16:30:57 +08:00
'app_name' => env('APP_NAME', 'skeleton'),
'app_env' => env('APP_ENV', 'dev'),
2020-11-02 22:45:37 +08:00
'scan_cacheable' => env('SCAN_CACHEABLE', false),
2020-11-03 17:12:57 +08:00
2020-11-21 19:53:01 +08:00
// 域名相关配置
2021-05-24 11:31:36 +08:00
'domain' => [
2021-06-30 19:27:49 +08:00
'web_url' => env('WEB_URL', ''),// Web 端首页地址
'img_url' => env('IMG_URL', ''),// 设置文件图片访问的域名
2020-11-21 19:53:01 +08:00
],
2020-12-19 18:06:29 +08:00
2021-05-24 11:31:36 +08:00
// 管理员邮箱
2021-06-30 19:27:49 +08:00
'admin_email' => env('ADMIN_EMAIL', ''),
2020-11-21 19:53:01 +08:00
2020-11-02 22:45:37 +08:00
StdoutLoggerInterface::class => [
'log_level' => [
LogLevel::ALERT,
LogLevel::CRITICAL,
2020-12-26 21:33:40 +08:00
//LogLevel::DEBUG,
2020-11-02 22:45:37 +08:00
LogLevel::EMERGENCY,
LogLevel::ERROR,
LogLevel::INFO,
LogLevel::NOTICE,
LogLevel::WARNING,
],
],
];