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

103 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 08:31:08 -05:00
shortDescription: string
description: string
terms: string
2019-02-20 08:36:43 -06:00
isNSFW: boolean
2018-03-01 06:57:29 -06:00
defaultClientRoute: string
defaultNSFWPolicy: NSFWPolicyType
customizations: {
javascript?: string
css?: string
}
}
2019-07-09 04:45:19 -05:00
theme: {
default: string
}
services: {
twitter: {
username: string
whitelisted: boolean
}
}
cache: {
previews: {
size: number
}
2018-07-12 12:02:00 -05:00
captions: {
size: number
}
}
signup: {
enabled: boolean
limit: number
requiresEmailVerification: boolean
}
admin: {
email: string
}
2019-01-09 08:14:29 -06:00
contactForm: {
enabled: boolean
}
user: {
videoQuota: number
videoQuotaDaily: number
}
transcoding: {
enabled: boolean
2018-12-11 07:52:50 -06:00
allowAdditionalExtensions: boolean
2019-05-16 09:55:34 -05:00
allowAudioFiles: boolean
threads: number
resolutions: {
'240p': boolean
'360p': boolean
'480p': boolean
'720p': boolean
'1080p': boolean
'2160p': boolean
}
2019-01-29 01:37:25 -06:00
hls: {
enabled: boolean
}
}
2018-08-03 04:10:31 -05:00
import: {
videos: {
http: {
enabled: boolean
2018-08-07 03:07:53 -05:00
},
torrent: {
enabled: boolean
2018-08-03 04:10:31 -05:00
}
}
}
autoBlacklist: {
videos: {
ofUsers: {
enabled: boolean
}
}
}
2019-04-08 07:04:57 -05:00
followers: {
instance: {
enabled: boolean,
manualApproval: boolean
2019-04-08 07:04:57 -05:00
}
}
}