PeerTube/shared/models/server/custom-config.model.ts

55 lines
817 B
TypeScript
Raw Normal View History

import { NSFWPolicyType } from '../videos/nsfw-policy.type'
export interface CustomConfig {
instance: {
name: string
2018-03-15 14:31:08 +01:00
shortDescription: string
description: string
terms: string
2018-03-01 13:57:29 +01:00
defaultClientRoute: string
defaultNSFWPolicy: NSFWPolicyType
customizations: {
javascript?: string
css?: string
}
}
services: {
twitter: {
username: string
whitelisted: boolean
}
}
cache: {
previews: {
size: number
}
}
signup: {
enabled: boolean
limit: number
}
admin: {
email: string
}
user: {
videoQuota: number
}
transcoding: {
enabled: boolean
threads: number
resolutions: {
'240p': boolean
'360p': boolean
'480p': boolean
'720p': boolean
'1080p': boolean
}
}
}