diff options
author | Silas Schöffel <sils@sils.li> | 2024-06-28 21:36:09 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-06-28 21:36:09 +0200 |
commit | 8e7bd12319a2ace311246c4abc0e7a99d11b54bb (patch) | |
tree | 6fddd64cec6433eafea93bc3852d7aca54bc68d5 /modules/nixos | |
parent | fix(peertube): configure https (diff) | |
download | nixos-server-8e7bd12319a2ace311246c4abc0e7a99d11b54bb.tar.gz nixos-server-8e7bd12319a2ace311246c4abc0e7a99d11b54bb.zip |
fix(peertube): allow sane user creation
This enables reviewed registration, assigns quota to new users and enables manual approval of new videos.
Diffstat (limited to 'modules/nixos')
-rw-r--r-- | modules/nixos/vhack/peertube/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
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"; |