Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions config/autoload/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
],
],
'settings' => [
// 对外部可以直接访问的目录地址,建议使用nginx反向代理访问
Constant::OPTION_DOCUMENT_ROOT => BASE_PATH . '/storage',
// 开启外部可以访问
Constant::OPTION_ENABLE_STATIC_HANDLER => true,
Constant::OPTION_ENABLE_COROUTINE => true,
Expand All @@ -43,11 +41,8 @@
Constant::OPTION_OPEN_HTTP2_PROTOCOL => true,
Constant::OPTION_MAX_REQUEST => 100000,
Constant::OPTION_UPLOAD_MAX_FILESIZE => 10 * 1024 * 1024,
Constant::OPTION_HTTP_AUTOINDEX => true,
Constant::OPTION_HTTP_INDEX_FILES => ['index.html'],
Constant::OPTION_SOCKET_BUFFER_SIZE => 3 * 1024 * 1024,
// 关闭buffer输出大小限制
// Constant::OPTION_BUFFER_OUTPUT_SIZE => 3 * 1024 * 1024,
// 上传最大为4M
Constant::OPTION_PACKAGE_MAX_LENGTH => 4 * 1024 * 1024,
],
Expand Down