Fix: increase upload size limit to 512MB
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ async def _run_server(cert_file, key_file):
|
|||||||
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||||
ssl_ctx.load_cert_chain(cert_file, key_file)
|
ssl_ctx.load_cert_chain(cert_file, key_file)
|
||||||
|
|
||||||
app = web.Application()
|
app = web.Application(client_max_size=512 * 1024 * 1024) # 512MB
|
||||||
app.router.add_route('*', '/', handle_request)
|
app.router.add_route('*', '/', handle_request)
|
||||||
app.router.add_route('*', '/{path_info:.*}', handle_request)
|
app.router.add_route('*', '/{path_info:.*}', handle_request)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user