app.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 应用设置
  4. // +----------------------------------------------------------------------
  5. use think\facade\Env;
  6. return [
  7. // 应用地址
  8. 'app_host' => env('APP_HOST', ''),
  9. // 应用的命名空间
  10. 'app_namespace' => '',
  11. // 是否启用路由
  12. 'with_route' => true,
  13. // 默认应用
  14. 'default_app' => 'index',
  15. // 默认时区
  16. 'default_timezone' => 'Asia/Shanghai',
  17. // 应用映射(自动多应用模式有效)
  18. 'app_map' => [
  19. Env::get('EASYADMIN.ADMIN', 'admin') => 'admin',
  20. ],
  21. // 域名绑定(自动多应用模式有效)
  22. 'domain_bind' => [],
  23. // 禁止URL访问的应用列表(自动多应用模式有效)
  24. 'deny_app_list' => ['common'],
  25. // 异常页面的模板文件
  26. 'exception_tmpl' => Env::get('APP_DEBUG') == 1 ? app()->getThinkPath() . 'tpl/think_exception.tpl' : app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'think_exception.tpl',
  27. // 跳转页面的成功模板文件
  28. 'dispatch_success_tmpl' => app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
  29. // 跳转页面的失败模板文件
  30. 'dispatch_error_tmpl' => app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
  31. // 错误显示信息,非调试模式有效
  32. 'error_message' => '页面错误!请稍后再试~',
  33. // 显示错误信息
  34. 'show_error_msg' => false,
  35. // 静态资源上传到OSS前缀
  36. 'oss_static_prefix' => Env::get('EASYADMIN.OSS_STATIC_PREFIX', 'static_easyadmin'),
  37. ];