mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
add static file server and fix root mapping bug
This commit is contained in:
@@ -136,5 +136,6 @@
|
||||
"xsl": "text/xml",
|
||||
"xwd": "image/x-xwindowdump",
|
||||
"xyz": "chemical/x-xyz",
|
||||
"zip": "application/zip"
|
||||
}
|
||||
"zip": "application/zip",
|
||||
"": "application/octet-stream"
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user