123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
- use think\facade\Env;
- error_reporting(E_ALL ^ E_NOTICE);
- return [
-
- 'app_name' => '',
-
- 'app_host' => '',
-
- 'app_debug' => Env::get('app.debug', false),
-
- 'app_trace' => Env::get('app.trace', false),
-
- 'app_status' => '',
-
- 'auto_bind_module' => false,
-
- 'root_namespace' => ['addons' => ROOT_PATH . 'addons/'],
-
- 'default_return_type' => 'html',
-
- 'default_ajax_return' => 'json',
-
- 'default_jsonp_handler' => 'jsonpReturn',
-
- 'var_jsonp_handler' => 'callback',
-
- 'default_timezone' => 'PRC',
-
- 'lang_switch_on' => false,
-
- 'default_lang' => 'zh-cn',
-
- 'default_validate' => '',
-
-
-
-
-
-
- 'default_module' => 'index',
-
- 'deny_module_list' => ['common'],
-
- 'default_controller' => 'Index',
-
- 'default_action' => 'index',
-
- 'empty_module' => 'error',
-
- 'empty_controller' => 'Error',
-
- 'use_action_prefix' => false,
-
- 'action_suffix' => '',
-
- 'controller_auto_search' => false,
-
- 'app_multi_module' => true,
-
- 'class_suffix' => false,
-
- 'controller_suffix' => false,
-
-
-
-
-
-
- 'default_filter' => '',
-
- 'var_pathinfo' => 's',
-
- 'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
-
- 'https_agent_name' => '',
-
- 'url_html_suffix' => 'html',
-
- 'url_domain_root' => '',
-
- 'http_agent_ip' => 'HTTP_X_REAL_IP',
-
- 'url_convert' => true,
-
- 'url_controller_layer' => 'controller',
-
- 'var_method' => '_method',
-
- 'var_ajax' => '_ajax',
-
- 'var_pjax' => '_pjax',
-
- 'request_cache' => false,
-
- 'request_cache_expire' => null,
-
- 'request_cache_except' => [],
-
-
-
-
-
-
- 'pathinfo_depr' => '/',
-
- 'url_common_param' => false,
-
- 'url_param_type' => 0,
-
- 'url_lazy_route' => true,
-
- 'url_route_must' => false,
-
- 'route_complete_match' => true,
-
- 'route_annotation' => false,
-
- 'default_route_pattern' => '[\w\.]+',
-
-
-
-
-
-
- 'dispatch_success_tmpl' => APP_PATH . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
- 'dispatch_error_tmpl' => APP_PATH . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
-
- 'exception_tmpl' => APP_PATH . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'think_exception.tpl',
-
- 'http_exception_template' => [
- 404 => APP_PATH . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . '404.tpl',
-
-
- ],
-
- 'error_message' => '页面错误!请稍后再试~',
-
- 'show_error_msg' => false,
-
- 'exception_handle' => '',
-
-
-
-
-
-
- 'public_url' => ROOT_URL . (defined('IF_PUBLIC') ? '' : 'public/'),
-
- 'data_auth_key' => 'Mhc(jk`[t.7?P_Ty=A%41o+S{J390DKpFmvW@E}8',
-
- 'login_failure_retry' => true,
-
- 'login_unique' => false,
-
- 'loginip_check' => false,
-
- 'backup_global_files' => true,
-
- 'addon_pure_mode' => true,
-
- 'cors_request_domain' => 'localhost,127.0.0.1',
-
- 'auto_record_admin_log' => true,
-
- 'savekey' => 'uploads/{dir}/{year}{mon}{day}/{filemd5}{.suffix}',
-
- 'chunking' => false,
-
- 'chunksize' => 5242880,
-
- 'cdnurl' => '',
-
- 'api_url' => 'https://api.yzncms.com',
- ];
|