1
0
Fork 0
peertube/shared/models/server/custom-config.model.ts

97 lines
1.4 KiB
TypeScript
Raw Normal View History

import { NSFWPolicyType } from '../videos/nsfw-policy.type'
export interface CustomConfig {
instance: {
name: string
2018-03-15 09:31:08 -04:00
shortDescription: string
description: string
terms: string
2019-02-20 09:36:43 -05:00
isNSFW: boolean
2018-03-01 07:57:29 -05:00
defaultClientRoute: string
defaultNSFWPolicy: NSFWPolicyType
customizations: {
javascript?: string
css?: string
}
}
services: {
twitter: {
username: string
whitelisted: boolean
}
}
cache: {
previews: {
size: number
}
2018-07-12 13:02:00 -04:00
captions: {
size: number
}
}
signup: {
enabled: boolean
limit: number
requiresEmailVerification: boolean
}
admin: {
email: string
}
2019-01-09 09:14:29 -05:00
contactForm: {
enabled: boolean
}
user: {
videoQuota: number
videoQuotaDaily: number
}
transcoding: {
enabled: boolean
2018-12-11 08:52:50 -05:00
allowAdditionalExtensions: boolean
threads: number
resolutions: {
'240p': boolean
'360p': boolean
'480p': boolean
'720p': boolean
'1080p': boolean
}
2019-01-29 02:37:25 -05:00
hls: {
enabled: boolean
}
}
2018-08-03 05:10:31 -04:00
import: {
videos: {
http: {
enabled: boolean
2018-08-07 04:07:53 -04:00
},
torrent: {
enabled: boolean
2018-08-03 05:10:31 -04:00
}
}
}
autoBlacklist: {
videos: {
ofUsers: {
enabled: boolean
}
}
}
2019-04-08 08:04:57 -04:00
followers: {
instance: {
enabled: boolean,
manualApproval: boolean
2019-04-08 08:04:57 -04:00
}
}
}