summary refs log tree commit diff stats
path: root/modules/nixos/vhack
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/vhack/peertube/default.nix22
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";