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)
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.
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
* 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]>
* 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]>
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]>
* 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]>
* 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]>