From 8e7bd12319a2ace311246c4abc0e7a99d11b54bb Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Fri, 28 Jun 2024 21:36:09 +0200 Subject: fix(peertube): allow sane user creation This enables reviewed registration, assigns quota to new users and enables manual approval of new videos. --- modules/nixos/vhack/peertube/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/nixos/vhack/peertube/default.nix b/modules/nixos/vhack/peertube/default.nix index c73f115..29d1d07 100644 --- a/modules/nixos/vhack/peertube/default.nix +++ b/modules/nixos/vhack/peertube/default.nix @@ -36,6 +36,28 @@ in { secrets.secretsFile = "${config.age.secrets.peertubeGeneral.path}"; settings = { + signup = { + enabled = true; + + limit = 10; # When the limit is reached, registrations are disabled. -1 == unlimited + + minimum_age = 18; # Used to configure the signup form + + # Users fill a form to register so moderators can accept/reject the registration + requires_approval = true; + requires_email_verification = true; + }; + user = { + video_quota = "10GB"; + video_quota_daily = "2GB"; + }; + auto_blacklist = { + videos = { + of_users = { + enabled = true; + }; + }; + }; listen.hostname = "127.0.0.1"; instance.name = "PeerTube at Vhack.eu"; -- cgit 1.4.1