TaoLer/config/app.php

53 lines
1.6 KiB
PHP
Raw Normal View History

2020-01-01 13:17:19 +08:00
<?php
2022-04-17 17:09:19 +08:00
/*
* @Author: TaoLer <alipey_tao@qq.com>
* @Date: 2021-12-06 16:04:50
2022-08-02 21:13:36 +08:00
* @LastEditTime: 2022-07-03 04:21:02
2022-04-17 17:09:19 +08:00
* @LastEditors: TaoLer
* @Description: 搜索引擎SEO优化设置
* @FilePath: \TaoLer\config\app.php
* Copyright (c) 2020~2022 http://www.aieok.com All rights reserved.
*/
2020-01-01 13:17:19 +08:00
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
return [
// 应用地址
2020-01-17 14:57:05 +08:00
'app_host' => env('app.host', ''),
2020-01-01 13:17:19 +08:00
// 应用的命名空间
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
// 是否启用事件
'with_event' => true,
// 默认应用
'default_app' => 'index',
// 默认时区
'default_timezone' => 'Asia/Shanghai',
// 应用映射(自动多应用模式有效)
2022-08-02 18:46:05 +08:00
'app_map' => [
2022-08-02 21:13:36 +08:00
//'bbs' => 'index'
2022-08-02 18:46:05 +08:00
],
2020-01-01 13:17:19 +08:00
// 域名绑定(自动多应用模式有效)
2022-08-02 18:46:05 +08:00
'domain_bind' => [
2022-08-02 21:13:36 +08:00
//'www' => 'index',
//'adm' => 'admin'
2020-10-19 17:23:55 +08:00
],
2020-01-01 13:17:19 +08:00
// 禁止URL访问的应用列表自动多应用模式有效
// 异常页面的模板文件
2022-08-02 21:13:36 +08:00
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
2020-01-01 13:17:19 +08:00
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
2020-06-19 16:45:45 +08:00
//异常页面模板
'http_exception_template' => [
404 => \think\facade\App::getAppPath() . '404.html',
500 => \think\facade\App::getAppPath() . '404.html',
2022-04-17 17:09:19 +08:00
],
2020-01-01 13:17:19 +08:00
];