744 Commits
Author SHA1 Message Date
Chocobozzz fbafb574ea Update translations 2026-10-28 11:26:59 +01:00
Chocobozzz 5a50e33d81 Optimize CI 2026-10-28 11:11:36 +01:00
Chocobozzz f780e64289 Introduce postgresql secondaries support
Only for a few routes, that consumes postgresql CPU

Re-implement sequelize connection routing mechanism, to support:
 * Replica lag monitoring (to not select replicas that are too far
   behind the primary)
 * Be opt-in instead of opt-out (primary is used by default, a context
   must be marked to use replicas)
 * Handle "read-you-writes" mechanism (ensure that reads after writes
   see the latest data, using the user ID to track recent writes)
2026-10-16 13:47:57 +02:00
Chocobozzz bc89e041fa Improve benchmark script 2026-10-06 09:01:26 +02:00
Chocobozzz 46cbbd487c Best effort for keeping order in AP
Lock objects when receiving activities, and use a global concurrency of
1 when sending them
2026-10-05 13:43:08 +02:00
Chocobozzz cb3d80d7c8 Add horizontal scalability tests and packaging
This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:39:50 +02:00
Chocobozzz f692e1505a Split lib/redis.ts into a lib/redis directory
Move the connection handling to redis-client.ts and each domain to its
own module.

Add the pub/sub channels and the Lua scripts the multi process
support will need.

This commit is part of bigger work to add horizontal scaling support to
PeerTube.
2026-10-05 13:38:06 +02:00
cinereal f8bb2e0d55 Declare the configuration schema against draft 2020-12
Every keyword `scripts/generate-config-schema.ts` emits -- `type`,
`default`, `description`, `properties`, `items`, `additionalProperties`,
`enum` -- means the same thing in draft-07 and in draft 2020-12, so the
generated document already is a valid 2020-12 schema and saying so changes
nothing about which configurations it admits.

Nothing in this repository reads the keyword: `validate-config-schema.ts`
drops `$schema` before compiling with Ajv. It is there for the consumers
that do read it -- editor completion, third-party validators -- and those
implement 2020-12 where support for the older drafts is fading.

Assisted-by: Claude:claude-opus-5
2026-08-18 10:19:59 +02:00
Chocobozzz 4e8ca8401c Migrate to typescript 7 for server 2026-08-10 13:11:29 +02:00
DefendiandChocobozzz e78b51d760 Add ability to disable video embed (#7716)
* feat(disable-video-embed): add ability to disable video embed
Add DISABLED value to the embed privacy policy enum, allowing owners
to fully block embedding instead of only restricting it to allowed domains.

* Styling

* Update doc

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-07-16 11:25:26 +02:00
Chocobozzz 0688ee7ee4 Merge branch 'release/v8.2.x' into develop 2026-07-13 16:35:33 +02:00
Chocobozzz 4f1168f729 Fix CI 2026-07-13 16:03:11 +02:00
Chocobozzz b7efa650c2 Merge branch 'release/v8.2.x' into develop 2026-07-08 17:05:47 +02:00
Chocobozzz a8eb267b13 Improve messgae when playlist is empty 2026-07-08 15:09:31 +02:00
Alexander peczonandChocobozzz 5bd32762b5 Fix/spa sourcemap 404 (#7696)
* tests: cover SPA fallback for missing sourcemap assets

* server: return 404 for missing sourcemap assets

* tests: preserve client route fallback behavior

* tests: cover plugin global css sourcemap comments

* plugins: strip sourcemap comments from global css

* Prefer to not generate CSS sourcemaps

File path is broken in production because they are relative the the
client route, not the JS script that created the inlined style

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-06-29 12:00:45 +02:00
Chocobozzz 12399a7f4c Update translations 2026-06-22 11:48:23 +02:00
cinereal 1cc0418a5f generate json schema
Uses the .yaml files to generate a JSON-Schema
describing the possible configuration options,
and add CI checks to keep this from going stale
and validate the YAML files against the schema.

Assisted-by: claude-code: claude-opus-4-7 (planning) + claude-sonnet-4-7 (execution)

Signed-off-by: cinereal <[email protected]>
2026-06-22 11:00:40 +02:00
Chocobozzz 1a4816edfa Fix ko locale 2026-05-11 10:30:39 +02:00
Chocobozzz fa8f289b0a Support ro and ko locales 2026-05-11 10:10:44 +02:00
Chocobozzz 79e80c4780 Filter out non text languages for captions 2026-04-15 11:38:17 +02:00
4474bf1a5e Add feature to flip the video horizontally (#7478)
* Add feature to flip the video horizontally

* Rename to .vjs-vid-flip-h for clarity

* Refactor to use Video.js plugin system

* Add cleanup method for VideoFlipHorizontallyPlugin

* Refactor code

* Add menu to video-filter-menu-button

* Fix submenu being pushed outside of the player

* Remove hotkey for mirror feature

* Rewrite event to be more explicit

* Add working button to flip video

* Remove extra comma

* Unhardcode videoFilter for videoFilter Menu

* Cleanup and add hotkey

---------

Co-authored-by: sunny-codex <[email protected]>
Co-authored-by: Chocobozzz <[email protected]>
2026-04-14 09:35:40 +02:00
Chocobozzz 390915811f Fix creating custom i18n files 2026-04-13 11:17:02 +02:00
Chocobozzz 9e562b9437 oxlint migration for server 2026-03-26 15:15:36 +01:00
Chocobozzz 097456f166 Video SQL query optimization
Reduce number of rows to parse in NodeJS by generating the JSON directly in
PostgreSQL
2026-03-24 14:04:49 +01:00
Chocobozzz 1f63b98c28 Optimize listing videos with collaboration 2026-03-23 16:02:42 +01:00
Chocobozzz 66afd2e104 Merge branch 'release/v8.1.x' into develop 2026-03-19 09:29:51 +01:00
Chocobozzz 94e7ab5c91 Fix missing packages in release/nightly 2026-03-19 07:00:44 +01:00
Chocobozzz e506977478 Merge branch 'release/v8.1.x' into develop 2026-03-18 10:55:05 +01:00
Chocobozzz 74c8f2ca3b Add missing packages in nightly/release
So users can still use pnpm add in the extracted directory
2026-03-18 10:45:32 +01:00
Sébastien NOBILIandChocobozzz c9855027ec Feat: video download stats (#7437)
* register job

* track downloads & display total count on stats page

* display download timeseries graph

* automated tests

* diff cleanup

* add downloads to platform stats

* remove extra semicolons

* fix lint issues

* set DB migration target

* move download stats to VideoViewModel

* rename videoView to videoStats

* lint fixes

* fix failing tests

* track remote downloads

* lint fixes

* Rename view directory to stat

* Simplify metric typing

* Do not display downloads in table

* Simplify downloads process

* Create stats tests directory

* Simplify download stats

* Fix stats fallback

* Fix redundancy

* Prevent useless log

---------

Co-authored-by: Chocobozzz <[email protected]>
2026-03-17 13:03:23 +01:00
Chocobozzz 000f8850e0 Add ka locale 2026-03-02 10:22:19 +01:00
Chocobozzz 4bb710400d Migrate peertube-cli to tsdown 2026-02-26 12:08:12 +01:00
Chocobozzz 7c9e870942 Migrate runner to tsdown 2026-02-26 11:27:24 +01:00
Chocobozzz 89b428ec0e Update translations 2026-02-25 08:49:20 +01:00
Chocobozzz 592abac3df Migrate i18next parser 2026-02-25 08:45:39 +01:00
Chocobozzz 4710ffb0ec Add video embed domain privacy 2026-02-23 09:39:55 +01:00
Chocobozzz 5b662c88fa Add secrets config comment 2026-02-19 16:03:18 +01:00
Chocobozzz 7a1fb21922 Fix types tests 2026-01-22 16:16:40 +01:00
Chocobozzz 51879352a4 Fix "Skipping hardlink pointing to itself" 2025-12-18 08:45:53 +01:00
Chocobozzz 07b783f53b Force npm login to prevent expired token 2025-12-16 09:49:27 +01:00
ar9708andar9708 893afd92be fix(scripts): make client build compatible with Bash 3.2 (macOS) (#7332)
* fix(scripts): make client build compatible with Bash 3.2 (macOS)

I started poking around here earlier this morning, to build and run tests and contribute something, but I quickly ran into the problem with Bash 4 requirements as I'm on MacOS. I was thinking this might pose an overly high barrier to entry for newcomers. Beautiful with the Bash 4+ associative arrays, but being able to check out the project and just run `npm run build` after the necessary Homebrew Node/npm/FFmpeg installs that's also beautiful! :)))

* refactor(scripts): use `key:locale` pairs instead of parallel arrays

Address maintainer feedback https://github.com/Chocobozzz/PeerTube/pull/7332#issuecomment-3646366574, keep the association between key and value visible by using "key:locale" pairs in a single array, with one language per line for easy scanning.

---------

Co-authored-by: ar9708 <[email protected]>
2025-12-12 14:45:13 +01:00
Chocobozzz fab3b7f931 Allow to inspect server in dev mode 2025-12-12 10:33:43 +01:00
Chocobozzz a606c7c420 Add missing translations 2025-12-09 08:29:03 +01:00
Chocobozzz 6e4f6bd819 Fix benchmark script 2025-12-02 15:01:24 +01:00
Chocobozzz d3b6114f18 Optimize videos count SQL query 2025-12-02 09:39:31 +01:00
Chocobozzz 3b97d1afda Add ability to display email with auth plugin 2025-11-13 14:17:04 +01:00
Chocobozzz 9257076b23 Add support/init.d in release tarball 2025-10-29 14:12:52 +01:00
Chocobozzz 5ef484a221 Add support/conf.d in release tarball 2025-10-29 14:11:08 +01:00
Chocobozzz 2aa62a0383 Fix update script 2025-10-28 16:22:09 +01:00
Chocobozzz 4fd894308d Fix CI 2025-09-15 10:02:38 +02:00