From 8fa748fd62d78453bcf855e607ce9cd2299f5429 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Tue, 22 Aug 2023 20:50:12 +0700 Subject: [PATCH] add max_request_body_size, socket_timeout, and timeout configuration on server.py --- config/server.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/server.py b/config/server.py index 0c036b6..c0a11f9 100644 --- a/config/server.py +++ b/config/server.py @@ -7,7 +7,10 @@ update = { 'tools.sessions.on' : True , 'engine.autoreload.on' : False , 'request.show_tracebacks' : False , - 'error_page.403' : directory.erpadir(403) , - 'error_page.404' : directory.erpadir(404) , - 'error_page.500' : directory.erpadir(500) , + 'error_page.403' : directory.erpadir(403) , + 'error_page.404' : directory.erpadir(404) , + 'error_page.500' : directory.erpadir(500) , + 'server.max_request_body_size' : 800 * 1024 * 1024 , # 800MB; Default 100MB + 'server.socket_timeout' : 60 , # Default 10s + 'response.timeout' : 3600 , # Default 300s }