aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 5d0d39395..e27d011fa 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -121,7 +121,8 @@ const CONSTRAINTS_FIELDS = {
121 }, 121 },
122 VIDEO_CHANNELS: { 122 VIDEO_CHANNELS: {
123 NAME: { min: 3, max: 120 }, // Length 123 NAME: { min: 3, max: 120 }, // Length
124 DESCRIPTION: { min: 3, max: 250 } // Length 124 DESCRIPTION: { min: 3, max: 250 }, // Length
125 URL: { min: 3, max: 2000 } // Length
125 }, 126 },
126 VIDEOS: { 127 VIDEOS: {
127 NAME: { min: 3, max: 120 }, // Length 128 NAME: { min: 3, max: 120 }, // Length
@@ -137,7 +138,13 @@ const CONSTRAINTS_FIELDS = {
137 VIEWS: { min: 0 }, 138 VIEWS: { min: 0 },
138 LIKES: { min: 0 }, 139 LIKES: { min: 0 },
139 DISLIKES: { min: 0 }, 140 DISLIKES: { min: 0 },
140 FILE_SIZE: { min: 10, max: 1024 * 1024 * 1024 * 3 /* 3Go */ } 141 FILE_SIZE: { min: 10, max: 1024 * 1024 * 1024 * 3 /* 3Go */ },
142 URL: { min: 3, max: 2000 } // Length
143 },
144 ACCOUNTS: {
145 PUBLIC_KEY: { min: 10, max: 5000 }, // Length
146 PRIVATE_KEY: { min: 10, max: 5000 }, // Length
147 URL: { min: 3, max: 2000 } // Length
141 }, 148 },
142 VIDEO_EVENTS: { 149 VIDEO_EVENTS: {
143 COUNT: { min: 0 } 150 COUNT: { min: 0 }