Implement image upload and viewer in v2

This commit is contained in:
LeonspaceX
2026-01-26 21:41:28 +08:00
parent 07bf09949f
commit 0cda40060e
9 changed files with 499 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ import logging
VITE_ADD = "http://localhost:5173"
PY_ADD = "http://127.0.0.1:5000"
PORT = 8080
MAX_BODY_MB = 50
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("dev_proxy")
@@ -97,7 +98,7 @@ async def ws_proxy_handler(request, target_url):
return ws_server
async def main():
app = web.Application()
app = web.Application(client_max_size=MAX_BODY_MB * 1024 * 1024)
# 捕获所有路径
app.router.add_route('*', '/{path:.*}', proxy_handler)