fix: increase client_max_size to 5GB in Application and GitApplication constructors

The Application class now passes a 5GB client_max_size limit to its parent constructor, while the GitApplication class has its existing limit raised from 100MB to 5GB, enabling support for larger file uploads and repository operations.
This commit is contained in:
2025-05-09 07:18:55 +00:00
parent 2aae42602e
commit 5cb4233138
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class Application(BaseApplication):
self.template_path = pathlib.Path(__file__).parent.joinpath("templates")
self.static_path = pathlib.Path(__file__).parent.joinpath("static")
super().__init__(
middlewares=middlewares, template_path=self.template_path, *args, **kwargs
middlewares=middlewares, template_path=self.template_path, client_max_size=1024*1024*1024*5 *args, **kwargs
)
session_setup(self, EncryptedCookieStorage(SESSION_KEY))
self.tasks = asyncio.Queue()
+1 -1
View File
@@ -15,7 +15,7 @@ logger = logging.getLogger('git_server')
class GitApplication(web.Application):
def __init__(self, parent=None):
self.parent = parent
super().__init__(client_max_size=100*1024*1024)
super().__init__(client_max_size=1024*1024*1024*5)
self.REPO_DIR = "drive/repositories/3177f85e-dbb3-4406-993e-3d3748fea545"
self.USERS = {
'x': 'x',