add static file server and fix root mapping bug

This commit is contained in:
whale
2020-04-26 17:15:27 +08:00
parent c632977ca1
commit 920680ee3d
4 changed files with 55 additions and 25 deletions

View File

@@ -67,4 +67,13 @@ $config['auto_save_interval'] = 900;
/** 上下文接口类 implemented from ContextInterface */
$config['context_class'] = \ZM\Context\Context::class;
/** 静态文件访问 */
$config['static_file_server'] = [
'status' => false,
'document_root' => WORKING_DIR . '/resources/html',
'document_index' => [
'index.html'
]
];
return $config;