From 840fb2ab39fb02969e9a6edccbffbeb8045e5f43 Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Mon, 4 Mar 2024 22:02:38 -0800 Subject: [PATCH] oh its just requestTimeout. --- config.json | 2 +- src/server/index.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index a1c051e..4b906ad 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "maxDiscordFileSize": 10485760, "targetGuild": "906767804575928390", "targetChannel": "1024080525993971913", - "requestTimeout": 120000, + "requestTimeout": 1800000, "maxUploadIdLength": 30, "accounts": { "registrationEnabled": true, diff --git a/src/server/index.ts b/src/server/index.ts index 35c5faa..bd49de2 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -114,6 +114,10 @@ serve( { fetch: app.fetch, port: Number(process.env.MONOFILE_PORT || 3000), + serverOptions: { + //@ts-ignore + requestTimeout: config.requestTimeout + } }, (info) => { console.log("Web OK!", info.port, info.address)