diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-19 11:44:03 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-04-19 11:44:03 +0200 |
commit | 77d0ae7b201264423d81e1019139eac3d7716536 (patch) | |
tree | 1a9fa6c20395deb32bd023de94611871d424be4e /server | |
parent | f692fc8d6f186c0535599c5c2321d896e41bdb98 (diff) | |
download | PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.gz PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.zst PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.zip |
Fix 2 hours limit on uploads
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/uploadx.ts | 4 |
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 | ||
5 | const uploadx = new Uploadx({ | 5 | const 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 | ||