From 754b6f5f41bdc40aaaeefdb3c351666c305abe20 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Tue, 26 Oct 2021 16:42:10 +0200 Subject: Made the video channels limit (per user) server-wide configurable (#4491) * Made the video channels limit (per user) server-wide configurable Implements https://github.com/Chocobozzz/PeerTube/issues/3092 Also added a "quota bar" in the account's settings page * Fixed lint errors * Another pass at fixing lint errors * Applied code suggestions * Removed 'video channels quota' --- config/default.yaml | 3 +++ config/production.yaml.example | 3 +++ 2 files changed, 6 insertions(+) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index f545382c8..cf9d69a62 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -296,6 +296,9 @@ user: video_quota: -1 video_quota_daily: -1 +video_channels: + max_per_user: 20 # Allows each user to create up to 20 video channels. + # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions # Please, do not disable transcoding since many uploaded videos will not work diff --git a/config/production.yaml.example b/config/production.yaml.example index 2e0d029ce..70993bf57 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -306,6 +306,9 @@ user: video_quota: -1 video_quota_daily: -1 +video_channels: + max_per_user: 20 # Allows each user to create up to 20 video channels. + # If enabled, the video will be transcoded to mp4 (x264) with `faststart` flag # In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions # Please, do not disable transcoding since many uploaded videos will not work -- cgit v1.2.3