Gateway: Set bottle request limit to 1MiB

This commit is contained in:
Athanasius 2022-01-06 13:07:53 +00:00
parent 87b33e4d1b
commit 0e80c76cb5

View File

@ -21,7 +21,9 @@ from eddn.core.Validator import Validator, ValidationSeverity
from gevent import monkey
monkey.patch_all()
import bottle
from bottle import Bottle, run, request, response, get, post
bottle.BaseRequest.MEMFILE_MAX = 1024 * 1024 # 1MiB, default is/was 100KiB
app = Bottle()
logger = logging.getLogger(__name__)