X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Futils%2Fserver%2Fconfig.ts;h=deb77e9c0e1067f98a9a73a2b94711022dd3a056;hb=14893eb71cb2d4ca47e07589c81958863603aba4;hp=15a94432b76300ee8a3e6225be3e73f24fed801c;hpb=d4681c0074ba51c62a3aeb9fb3f2cd071dd21e32;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/utils/server/config.ts b/shared/utils/server/config.ts index 15a94432b..deb77e9c0 100644 --- a/shared/utils/server/config.ts +++ b/shared/utils/server/config.ts @@ -1,4 +1,4 @@ -import { makeDeleteRequest, makeGetRequest, makePutBodyRequest } from '../' +import { makeDeleteRequest, makeGetRequest, makePutBodyRequest } from '../requests/requests' import { CustomConfig } from '../../models/server/custom-config.model' function getConfig (url: string) { @@ -52,6 +52,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { description: 'my super description', terms: 'my super terms', defaultClientRoute: '/videos/recently-added', + isNSFW: true, defaultNSFWPolicy: 'blur', customizations: { javascript: 'alert("coucou")', @@ -80,12 +81,16 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { admin: { email: 'superadmin1@example.com' }, + contactForm: { + enabled: true + }, user: { videoQuota: 5242881, videoQuotaDaily: 318742 }, transcoding: { enabled: true, + allowAdditionalExtensions: true, threads: 1, resolutions: { '240p': false, @@ -93,6 +98,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { '480p': true, '720p': false, '1080p': false + }, + hls: { + enabled: false } }, import: { @@ -104,6 +112,19 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { enabled: false } } + }, + autoBlacklist: { + videos: { + ofUsers: { + enabled: false + } + } + }, + followers: { + instance: { + enabled: true, + manualApproval: false + } } }