Commit Graph

562 Commits

Author SHA1 Message Date
Chocobozzz
e65ef81cf5
Update server dependencies 2023-02-16 11:56:58 +01:00
Chocobozzz
57f255bebc
Fix types build
We use server tsc to build client types so it causes issues with client
typescript version
2023-01-09 15:01:17 +01:00
Chocobozzz
bde404995e
Fix build 2023-01-09 11:44:08 +01:00
Chocobozzz
2cb9f8b9c7
Bumped to version v5.0.1 2023-01-05 10:26:56 +01:00
Chocobozzz
ce502d09a9
Bumped to version v5.0.0 2022-12-13 08:32:14 +01:00
Chocobozzz
495c81400d
Bumped to version v5.0.0-rc.1 2022-11-29 08:44:30 +01:00
Chocobozzz
f7b00376a8
Update socket io 2022-11-28 09:16:34 +01:00
Chocobozzz
77239b425a
Merge branch 'release/4.3.0' into develop 2022-11-17 08:58:33 +01:00
Chocobozzz
b961118540
Bumped to version v4.3.1 2022-11-17 08:48:47 +01:00
Chocobozzz
077600e037
Upgrade server dependencies 2022-11-15 13:48:51 +01:00
kontrollanten
564b9b5597
refactor(server): redis > ioredis (#5371)
* refactor(server): redis > ioredis

* refactor(JobQueue): reuse redis connection builder

* fix(redisio)

* fix(redis): setValue

* feat(redis): showFriendlyErrorStack

* feat(redis): auto pipelining

308017a6b9/README.md (autopipelining)

* dont use autopipelining for bullmq

* ioredis events
2022-11-14 16:26:20 +01:00
Chocobozzz
9ab330b90d Use private ACL for private videos in s3 2022-10-24 14:48:24 +02:00
Chocobozzz
3545e72c68 Put private videos under a specific subdirectory 2022-10-24 14:48:24 +02:00
Chocobozzz
56f4783075
Support two factor authentication in backend 2022-10-07 10:51:16 +02:00
Chocobozzz
31ee48d579
Fix error when running setup:cli 2022-09-28 14:55:15 +02:00
Chocobozzz
4a9de87793
Bumped to version v4.3.0 2022-09-21 11:30:14 +02:00
Chocobozzz
e1e823faaa
Bumped to version v4.3.0-rc.1 2022-09-12 10:48:46 +02:00
Chocobozzz
3d2e4f0371
Update server dependencies 2022-09-09 11:11:52 +02:00
Chocobozzz
fd3c2e8705
Add playback metric endpoint sent to OTEL 2022-08-16 10:33:27 +02:00
Chocobozzz
5a921e7b74
Move to bullmq 2022-08-09 09:18:07 +02:00
Chocobozzz
7a9e420a02
Remove uneeded async 2022-08-02 14:41:44 +02:00
Chocobozzz
1bb4c9ab2e
Add ability to delete a specific video file 2022-08-01 14:55:10 +02:00
Chocobozzz
ce6b3765a2
Add more tracing 2022-07-28 10:56:05 +02:00
Chocobozzz
b4890f2149
Upgrade server dependencies 2022-07-27 14:56:08 +02:00
Chocobozzz
ba2684cedd
Fix lint 2022-07-13 12:14:26 +02:00
Chocobozzz
5ed6bc77ca
Upgrade server dependencies 2022-07-13 09:58:34 +02:00
Chocobozzz
5d7cb63ede
Add compat with openssl 3 2022-07-12 12:08:12 +02:00
Chocobozzz
630d0a1bf5
Introduce experimental telemetry 2022-07-06 15:13:55 +02:00
Chocobozzz
031bbcd25d
Upgrade oauth2-server 2022-06-28 15:32:57 +02:00
Chocobozzz
a2fb5fb8b1
Merge branch 'release/4.2.0' into develop 2022-06-28 14:37:30 +02:00
Chocobozzz
28368da087
Bumped to version v4.2.2 2022-06-28 14:31:07 +02:00
Chocobozzz
c53853ca1b
Introduce worker threads to process remote images 2022-06-24 16:31:48 +02:00
Chocobozzz
35540f3806
Upgrade server dependencies 2022-06-21 11:10:58 +02:00
Chocobozzz
50341c8fe9
Upgrade critital server dependencies 2022-06-21 11:07:00 +02:00
Chocobozzz
ae64a66ac5
Upgrade vulnerable dependencies 2022-06-21 10:59:46 +02:00
Chocobozzz
3471c631ad
Bumped to version v4.2.1 2022-06-21 09:14:42 +02:00
Chocobozzz
8b126121da
Bumped to version v4.2.0 2022-06-07 09:52:42 +02:00
Chocobozzz
2e94ddee41
Bumped to version v4.2.0-rc.1 2022-05-23 08:29:22 +02:00
Chocobozzz
f4120aea7a
Fix video upload with some characters in filename 2022-05-17 14:54:54 +02:00
Chocobozzz
f15f20a5be
Upgrade http signature
To support hs2019 implementation of other federated softwaare that use
rsa256 instead of rsa512
2022-05-10 11:49:21 +02:00
Chocobozzz
ca3d5912e1
Add use proxy for s3 (#4973)
* Fix object storage to be accessible via proxy

* fix lint

* Use hpagent

* Fix lint

* Fix PR

Co-authored-by: noellabo <noel.yoshiba@gmail.com>
2022-05-09 11:49:25 +02:00
kontrollanten
156cdbac22
object-storage: @aws-sdk/lib-storage for multipart (#4903)
* object-storage: @aws-sdk/lib-storage for multipart

* gitignore: add .DS_Store

* test(object-storage): remove only

* test(object-storage/multipart): generate video

* fix lint issue

* test(obj-storage/video): ensure file size

* Styling

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-04-19 15:22:18 +02:00
Chocobozzz
77d0ae7b20
Fix 2 hours limit on uploads 2022-04-19 11:44:03 +02:00
Chocobozzz
322ef8bb9c
Upgrade server dependencies 2022-04-15 10:56:46 +02:00
Chocobozzz
b211106695 Support video views/viewers stats in server
* Add "currentTime" and "event" body params to view endpoint
 * Merge watching and view endpoints
 * Introduce WatchAction AP activity
 * Add tables to store viewer information of local videos
 * Add endpoints to fetch video views/viewers stats of local videos
 * Refactor views/viewers handlers
 * Support "views" and "viewers" counters for both VOD and live videos
2022-04-15 09:49:35 +02:00
Chocobozzz
1575be6825
Upgrade server dependencies 2022-04-08 14:32:31 +02:00
Chocobozzz
f4110e0a72
Update server dependencies 2022-03-21 14:20:47 +01:00
Chocobozzz
70f3012acd
Bumped to version v4.1.1 2022-03-08 10:41:59 +01:00
Chocobozzz
57a8d07ed4
Bumped to version v4.1.0 2022-02-23 09:31:11 +01:00
Chocobozzz
adc61ac6a3
Bumped to version v4.1.0-rc.1 2022-02-10 09:57:09 +01:00
Chocobozzz
119418b9d9
Upgrade lru-cache
The bug has been fixed on their side
2022-02-10 09:05:44 +01:00
Chocobozzz
9d8ef212ff
Fix broken dep 2022-02-09 17:48:15 +01:00
Chocobozzz
c9f27d9881
Update server dependencies 2022-02-09 13:51:24 +01:00
Chocobozzz
0e00f894c6
Fix xml feed validity 2022-02-09 11:54:18 +01:00
Chocobozzz
4393b2552c
Move to peertube feed fork 2022-02-07 09:38:24 +01:00
Chocobozzz
ebe4b3df5c
Remove fixed workaround 2022-01-21 11:11:03 +01:00
Chocobozzz
2f0a0ae217
Upgrade uploadx dependency 2022-01-18 10:47:26 +01:00
Chocobozzz
c0d2eac332
Update server dependencies 2022-01-14 14:15:23 +01:00
Chocobozzz
f8360396ff
Stop using tsconfig register
Prefer to replace paths at compile time
2022-01-06 08:26:14 +01:00
Chocobozzz
9270bd3a7e
Migrate to --enable-source-maps option 2022-01-03 16:37:16 +01:00
Chocobozzz
81d02aac56
Fix types package dependencies 2021-12-28 15:10:55 +01:00
Chocobozzz
6627dbc957
Move types package in packages/ 2021-12-28 10:18:15 +01:00
Chocobozzz
fafc7c3cbd
Update resolve tspaths and enabled CI for types 2021-12-28 08:37:05 +01:00
Chocobozzz
e5d91a9b9c
Upgrade redis dep 2021-12-24 14:52:24 +01:00
Chocobozzz
2d28b0c21d
Upgrade fast xml parser dep 2021-12-24 13:55:47 +01:00
Chocobozzz
b969539c83
Fix types dist paths 2021-12-24 13:28:33 +01:00
Chocobozzz
9b3294a849 Fix some build scripts and lint 2021-12-16 10:08:43 +01:00
lutangar
b8fa3e8c73 refactor(types): create dedicated folder for types package src
fix guide examples and add types package readme

refactor(tsconfig): move back base tsconfig to base directory
2021-12-16 10:08:43 +01:00
lutangar
8b03e2ce1a feat(types): create peertube-types package
Create dedicated Typescript "types" configuration file for each "projects".
Create a types folder which includes every useful ts definition:
- client
- server
- shared
Add tooling to create a proper package, extract dependencies, etc...
Add CI Github task.

refactor(types): publish types package in release script
2021-12-16 10:08:43 +01:00
Chocobozzz
fa66c9a601
Merge branch 'release/4.0.0' into develop 2021-12-13 10:22:05 +01:00
Chocobozzz
37a5d6318b
Bumped to version v4.0.0 2021-12-13 09:22:25 +01:00
Chocobozzz
2d4822e3af
Upgrade multer 2021-12-08 08:58:52 +01:00
Chocobozzz
ca87d95bcb
Fix plugin upgrade
Correctly decache all plugin paths
2021-12-03 10:14:17 +01:00
Chocobozzz
7e587ea46d
Bumped to version v4.0.0-rc.1 2021-11-30 09:01:37 +01:00
Chocobozzz
7fc1012ffd
Update server depencencies 2021-11-10 15:30:44 +01:00
kontrollanten
e1ab52d7ec
Add migrate-to-object-storage script (#4481)
* add migrate-to-object-storage-script

closes #4467

* add migrate-to-unique-playlist-filenames script

* fix(migrate-to-unique-playlist-filenames): update master/segments256

run updateMasterHLSPlaylist and updateSha256VODSegments after
file rename.

* Improve move to object storage scripts

* PR remarks

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-09 11:05:35 +01:00
Chocobozzz
605450a6f7
Fix dependency security alert 2021-10-26 16:04:09 +02:00
Chocobozzz
5842a85424
Remove unnecessary package
https://github.com/standard/standard/issues/1316
2021-10-26 15:08:58 +02:00
Chocobozzz
d91a0341a7
Add missing dependency proxy-addr 2021-10-26 09:57:38 +02:00
Chocobozzz
62549e6c98
Rewrite youtube-dl import
Use python3 binary
Allows to use a custom youtube-dl release URL
Allows to use yt-dlp (youtube-dl fork)
Remove proxy config from configuration to use HTTP_PROXY and HTTPS_PROXY
env variables
2021-10-22 10:25:24 +02:00
Chocobozzz
05c0535df7
Update server dependencies 2021-10-12 14:31:59 +02:00
Chocobozzz
d00e9c54f3
Merge branch 'next' into develop 2021-10-11 09:37:30 +02:00
Chocobozzz
eecd7ac359
Bumped to version v3.4.1 2021-10-11 09:37:27 +02:00
Chocobozzz
624e42fdf9
Remove peertube watch and peertube repl
I don't have time to maintain these scripts that cause some install
issues/maintenance difficulties
2021-09-10 15:06:57 +02:00
Chocobozzz
c6fb386adc
Bumped to version v3.4.0 2021-09-09 10:54:23 +02:00
Chocobozzz
12d6b873cd
Improve e2e workflow and add doc 2021-09-02 09:07:42 +02:00
Chocobozzz
92cb986263
Bumped to version v3.4.0-rc.1 2021-08-31 08:43:11 +02:00
Chocobozzz
41fb13c330
esModuleInterop to true 2021-08-27 15:12:22 +02:00
Chocobozzz
8e72210829
Update server dependencies 2021-08-26 11:22:50 +02:00
smilekison
8729a87024
Support proxies for PeerTube (#4346)
* Updated with latest code

* Updated Support proxies for PeerTube

* Support Proxies for PeerTube (Updated with change request)

* Cleanup proxy PR

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-25 15:08:37 +02:00
Chocobozzz
1f6125be8b
Optimize torrent URL update 2021-08-18 09:14:51 +02:00
Chocobozzz
66a7fc9473
Remove optimize old videos script
It is not compatible with HLS and I don't have time to maintain it
2021-08-17 10:33:36 +02:00
Jelle Besseling
0305db28c9
Add support for saving video files to object storage (#4290)
* Add support for saving video files to object storage

* Add support for custom url generation on s3 stored files

Uses two config keys to support url generation that doesn't directly go
to (compatible s3). Can be used to generate urls to any cache server or
CDN.

* Upload files to s3 concurrently and delete originals afterwards

* Only publish after move to object storage is complete

* Use base url instead of url template

* Fix mistyped config field

* Add rudenmentary way to download before transcode

* Implement Chocobozzz suggestions

https://github.com/Chocobozzz/PeerTube/pull/4290#issuecomment-891670478

The remarks in question:
    Try to use objectStorage prefix instead of s3 prefix for your function/variables/config names
    Prefer to use a tree for the config: s3.streaming_playlists_bucket -> object_storage.streaming_playlists.bucket
    Use uppercase for config: S3.STREAMING_PLAYLISTS_BUCKETINFO.bucket -> OBJECT_STORAGE.STREAMING_PLAYLISTS.BUCKET (maybe BUCKET_NAME instead of BUCKET)
    I suggest to rename moveJobsRunning to pendingMovingJobs (or better, create a dedicated videoJobInfo table with a pendingMove & videoId columns so we could also use this table to track pending transcoding jobs)
    https://github.com/Chocobozzz/PeerTube/pull/4290/files#diff-3e26d41ca4bda1de8e1747af70ca2af642abcc1e9e0bfb94239ff2165acfbde5R19 uses a string instead of an integer
    I think we should store the origin object storage URL in fileUrl, without base_url injection. Instead, inject the base_url at "runtime" so admins can easily change this configuration without running a script to update DB URLs

* Import correct function

* Support multipart upload

* Remove import of node 15.0 module stream/promises

* Extend maximum upload job length

Using the same value as for redundancy downloading seems logical

* Use dynamic part size for really large uploads

Also adds very small part size for local testing

* Fix decreasePendingMove query

* Resolve various PR comments

* Move to object storage after optimize

* Make upload size configurable and increase default

* Prune webtorrent files that are stored in object storage

* Move files after transcoding jobs

* Fix federation

* Add video path manager

* Support move to external storage job in client

* Fix live object storage tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-17 08:26:20 +02:00
Chocobozzz
eb8bd9ab1a
Try to fix openapi script 2021-08-11 14:38:07 +02:00
Chocobozzz
31aa391d13
Update server dependencies 2021-08-11 11:49:00 +02:00
Chocobozzz
7a397c7f15
Upgrade server dependencies 2021-07-22 12:01:58 +02:00
Chocobozzz
20bafcb61b
Move apicache in peertube
Allow us to upgrade to node 16
2021-07-22 11:48:24 +02:00
Chocobozzz
f49ff55162
Bumped to version v3.3.0 2021-07-20 15:08:50 +02:00
Chocobozzz
deecf33724
Bumped to version v3.3.0-rc.1 2021-07-05 15:19:45 +02:00
Chocobozzz
d4a8e7a65f Support short uuid for GET video/playlist 2021-06-29 14:56:35 +02:00