diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 2f1132904..35c89835b 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { isSignupAllowed } from '../../helpers/utils' | 2 | import { isSignupAllowed } from '../../helpers/utils' |
3 | 3 | ||
4 | import { CONFIG } from '../../initializers' | 4 | import { CONFIG, CONSTRAINTS_FIELDS } from '../../initializers' |
5 | import { asyncMiddleware } from '../../middlewares' | 5 | import { asyncMiddleware } from '../../middlewares' |
6 | import { ServerConfig } from '../../../shared' | 6 | import { ServerConfig } from '../../../shared' |
7 | 7 | ||
@@ -24,6 +24,19 @@ async function getConfig (req: express.Request, res: express.Response, next: exp | |||
24 | }, | 24 | }, |
25 | transcoding: { | 25 | transcoding: { |
26 | enabledResolutions | 26 | enabledResolutions |
27 | }, | ||
28 | avatar: { | ||
29 | file: { | ||
30 | size: { | ||
31 | max: CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max | ||
32 | }, | ||
33 | extensions: CONSTRAINTS_FIELDS.ACTORS.AVATAR.EXTNAME | ||
34 | } | ||
35 | }, | ||
36 | video: { | ||
37 | file: { | ||
38 | extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME | ||
39 | } | ||
27 | } | 40 | } |
28 | } | 41 | } |
29 | 42 | ||