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 | |
parent | f692fc8d6f186c0535599c5c2321d896e41bdb98 (diff) | |
download | PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.gz PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.tar.zst PeerTube-77d0ae7b201264423d81e1019139eac3d7716536.zip |
Fix 2 hours limit on uploads
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | server/lib/uploadx.ts | 4 | ||||
-rw-r--r-- | yarn.lock | 8 |
3 files changed, 9 insertions, 5 deletions
diff --git a/package.json b/package.json index 722c7867e..97438afdb 100644 --- a/package.json +++ b/package.json | |||
@@ -81,7 +81,7 @@ | |||
81 | "@babel/parser": "7.17.9", | 81 | "@babel/parser": "7.17.9", |
82 | "@peertube/feed": "^5.0.1", | 82 | "@peertube/feed": "^5.0.1", |
83 | "@peertube/http-signature": "^1.4.0", | 83 | "@peertube/http-signature": "^1.4.0", |
84 | "@uploadx/core": "^5.0.0", | 84 | "@uploadx/core": "^5.1.0", |
85 | "async": "^3.0.1", | 85 | "async": "^3.0.1", |
86 | "async-lru": "^1.1.1", | 86 | "async-lru": "^1.1.1", |
87 | "bcrypt": "5.0.1", | 87 | "bcrypt": "5.0.1", |
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 | ||
@@ -2179,10 +2179,10 @@ | |||
2179 | resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" | 2179 | resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" |
2180 | integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== | 2180 | integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== |
2181 | 2181 | ||
2182 | "@uploadx/core@^5.0.0": | 2182 | "@uploadx/core@^5.1.0": |
2183 | version "5.0.0" | 2183 | version "5.1.0" |
2184 | resolved "https://registry.yarnpkg.com/@uploadx/core/-/core-5.0.0.tgz#6d71683f67064a9223b9c1d0707991b618145375" | 2184 | resolved "https://registry.yarnpkg.com/@uploadx/core/-/core-5.1.0.tgz#292d6f0c2a2e8f21283eed7879a73ee856334ac0" |
2185 | integrity sha512-7tHQt2TLzU1CfhOk3Nw5A+D+0nqrRuJPzJcCVrpbdvjwwmUvs5Wf623rwEqtLOBznDMevHxO/kXFw/jYXt3Vmg== | 2185 | integrity sha512-C19Hne2X7PaaJ8J8clj0XE+iAqAtIx/8DnsSMMe8LWtIcGnquRsj5acaawuhOr7SrYOpI1CHCY5HC4SPtykb7g== |
2186 | dependencies: | 2186 | dependencies: |
2187 | bytes "^3.1.0" | 2187 | bytes "^3.1.0" |
2188 | debug "^4.3.1" | 2188 | debug "^4.3.1" |