aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-19 11:44:03 +0200
committerChocobozzz <me@florianbigard.com>2022-04-19 11:44:03 +0200
commit77d0ae7b201264423d81e1019139eac3d7716536 (patch)
tree1a9fa6c20395deb32bd023de94611871d424be4e /server/lib
parentf692fc8d6f186c0535599c5c2321d896e41bdb98 (diff)
downloadPeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.gz
PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.zst
PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.zip
Fix 2 hours limit on uploads
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/uploadx.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/uploadx.ts b/server/lib/uploadx.ts
index 34a4461f0..9484eff75 100644
--- a/server/lib/uploadx.ts
+++ b/server/lib/uploadx.ts
@@ -4,8 +4,12 @@ import { Uploadx } from '@uploadx/core'
4 4
5const uploadx = new Uploadx({ 5const uploadx = new Uploadx({
6 directory: getResumableUploadPath(), 6 directory: getResumableUploadPath(),
7
8 expiration: { maxAge: undefined, rolling: true },
9
7 // Could be big with thumbnails/previews 10 // Could be big with thumbnails/previews
8 maxMetadataSize: '10MB', 11 maxMetadataSize: '10MB',
12
9 userIdentifier: (_, res: express.Response) => { 13 userIdentifier: (_, res: express.Response) => {
10 if (!res.locals.oauth) return undefined 14 if (!res.locals.oauth) return undefined
11 15