Commit Graph
22 Commits
Author SHA1 Message Date
Chocobozzz b6ac3d7c26 Fix activeRequests debug log 2026-07-10 11:29:05 +02:00
Chocobozzz 90e87d9b5d Abort request on invalid digest 2026-07-09 16:14:15 +02:00
Chocobozzz d8676ce469 Merge branch 'release/v8.1.x' into develop 2026-05-23 18:26:05 +02:00
Chocobozzz 81107dceae Prevent warning at startup 2026-05-23 10:30:02 +02:00
Chocobozzz 182772bb77 Add ability to disable root login from config 2026-05-23 10:26:20 +02: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 <me@florianbigard.com>
2026-03-17 13:03:23 +01:00
Chocobozzz 5c2e200526 Update infohash on base url change 2026-01-02 17:03:35 +01:00
Chocobozzz db1dfc6756 Painfully upgrade dependencies 2025-11-14 14:52:17 +01:00
Chocobozzz da23ad1d09 Add ability for admin to configure request timeout
AFAIK we can't set a specific timeout on a specific route/request, so
the admin must set it globally
2025-08-11 16:55:37 +02:00
Chocobozzz 57caf25611 Add ability to list and revoke token sessions 2025-07-30 11:42:49 +02:00
Chocobozzz d6e4dac032 Add email translations
Convert emails from Pug template to Handlebars because i18next doesn't
support Pug
2025-07-24 09:18:04 +02:00
Chocobozzz e0b7cf6592 Remove deprecated non standard DNT support 2025-06-17 08:14:15 +02:00
Chocobozzz c88cb21663 Improve podcast feed 2025-02-17 11:10:46 +01:00
Chocobozzz bff5682f6c Improve s3 exceptions logging 2025-02-12 15:55:18 +01:00
Chocobozzz e6de476ae8 Add ability to disable federation 2024-08-14 14:12:37 +02:00
kontrollanten 1b323f4f65 feat(plugins): add req.rawBody for routes
Stripe webhooks endpoints requires to read the raw request body.
https://docs.stripe.com/webhooks#verify-webhook-signatures-with-official-libraries
2024-04-02 11:06:34 +02:00
kontrollanten 29873257e7 fix(server): cleanup db connections upon exit 2024-03-11 08:00:53 +01:00
Chocobozzz 8573e5a80a Implement user import/export in server 2024-02-21 13:49:08 +01:00
Chocobozzz a73f476c8a We don't need cookies for REST API 2023-12-20 10:55:47 +01:00
Chocobozzz 90db2b3aed Add ability to disable HTTP logs 2023-10-24 10:57:41 +02:00
Chocobozzz 5a3d0650c9 server/server -> server/core 2023-10-04 15:13:25 +02:00
Chocobozzz 3a4992633e Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00