File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ mod validator;
55
55
use option:: CONFIG ;
56
56
57
57
// Global configurations
58
- const MAX_EVENT_PAYLOAD_SIZE : usize = 1024000 ;
58
+ const MAX_EVENT_PAYLOAD_SIZE : usize = 10240000 ;
59
59
const API_BASE_PATH : & str = "/api" ;
60
60
const API_VERSION : & str = "v1" ;
61
61
@@ -261,7 +261,11 @@ pub fn configure_routes(cfg: &mut web::ServiceConfig) {
261
261
// POST "/query" ==> Get results of the SQL query passed in request body
262
262
. service ( web:: resource ( query_path ( ) ) . route ( web:: post ( ) . to ( handlers:: event:: query) ) )
263
263
// POST "/ingest" ==> Post logs to given log stream based on header
264
- . service ( web:: resource ( ingest_path ( ) ) . route ( web:: post ( ) . to ( handlers:: event:: ingest) ) )
264
+ . service (
265
+ web:: resource ( ingest_path ( ) )
266
+ . route ( web:: post ( ) . to ( handlers:: event:: ingest) )
267
+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
268
+ )
265
269
. service (
266
270
// logstream API
267
271
web:: resource ( logstream_path ( "{logstream}" ) )
You can’t perform that action at this time.
0 commit comments