1.增加unraid反向代理body最大大小。
This commit is contained in:
parent
3fa2c054e2
commit
5256ab94de
@ -1,6 +1,7 @@
|
||||
#include "HttpSession.h"
|
||||
#include "Application.h"
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/stacktrace.hpp>
|
||||
#include <boost/url/parse_path.hpp>
|
||||
#include <boost/url/url_view.hpp>
|
||||
#include <iostream>
|
||||
@ -72,7 +73,12 @@ void HttpSession::onRead(boost::beast::error_code ec, std::size_t) {
|
||||
boost::urls::matches matches;
|
||||
auto handler = application->find(*path, matches);
|
||||
if (handler) {
|
||||
try {
|
||||
(*handler)(*this, request, matches);
|
||||
} catch (const std::exception &e) {
|
||||
boost::stacktrace::stacktrace trace = boost::stacktrace::stacktrace::from_current_exception();
|
||||
LOG(error) << e.what() << ", trace:\n" << trace;
|
||||
}
|
||||
} else {
|
||||
std::ostringstream oss;
|
||||
oss << "The resource '" << request.target() << "' was not found.";
|
||||
|
@ -66,6 +66,7 @@ http {
|
||||
|
||||
client_header_timeout 120s;
|
||||
client_body_timeout 120s;
|
||||
client_max_body_size 512m; #上传文件最大支持512m
|
||||
|
||||
ssl_certificate cert/unraid.amass.fun.pem;
|
||||
ssl_certificate_key cert/unraid.amass.fun.key;
|
||||
|
Loading…
Reference in New Issue
Block a user