2018-04-19 05:01:34 -04:00
|
|
|
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
|
|
|
|
|
2018-01-17 04:32:03 -05:00
|
|
|
export interface CustomConfig {
|
2018-01-31 10:42:40 -05:00
|
|
|
instance: {
|
|
|
|
name: string
|
2018-03-15 09:31:08 -04:00
|
|
|
shortDescription: string
|
2018-01-31 10:42:40 -05:00
|
|
|
description: string
|
|
|
|
terms: string
|
2019-02-20 09:36:43 -05:00
|
|
|
isNSFW: boolean
|
2018-03-01 07:57:29 -05:00
|
|
|
defaultClientRoute: string
|
2018-04-19 05:01:34 -04:00
|
|
|
defaultNSFWPolicy: NSFWPolicyType
|
2018-02-22 04:22:53 -05:00
|
|
|
customizations: {
|
|
|
|
javascript?: string
|
|
|
|
css?: string
|
|
|
|
}
|
2018-01-31 10:42:40 -05:00
|
|
|
}
|
|
|
|
|
2018-05-10 06:26:47 -04:00
|
|
|
services: {
|
|
|
|
twitter: {
|
|
|
|
username: string
|
|
|
|
whitelisted: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-17 04:32:03 -05:00
|
|
|
cache: {
|
|
|
|
previews: {
|
|
|
|
size: number
|
|
|
|
}
|
2018-07-12 13:02:00 -04:00
|
|
|
|
|
|
|
captions: {
|
|
|
|
size: number
|
|
|
|
}
|
2018-01-17 04:32:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
signup: {
|
|
|
|
enabled: boolean
|
|
|
|
limit: number
|
2018-08-31 03:18:19 -04:00
|
|
|
requiresEmailVerification: boolean
|
2018-01-17 04:32:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
admin: {
|
|
|
|
email: string
|
|
|
|
}
|
|
|
|
|
2019-01-09 09:14:29 -05:00
|
|
|
contactForm: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
2018-01-17 04:32:03 -05:00
|
|
|
user: {
|
|
|
|
videoQuota: number
|
2018-08-28 03:01:35 -04:00
|
|
|
videoQuotaDaily: number
|
2018-01-17 04:32:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
transcoding: {
|
|
|
|
enabled: boolean
|
2018-12-11 08:52:50 -05:00
|
|
|
allowAdditionalExtensions: boolean
|
2018-01-17 04:32:03 -05:00
|
|
|
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-01-17 04:32:03 -05:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-02 05:26:47 -04:00
|
|
|
|
|
|
|
autoBlacklist: {
|
|
|
|
videos: {
|
|
|
|
ofUsers: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-08 08:04:57 -04:00
|
|
|
followers: {
|
|
|
|
instance: {
|
2019-04-08 09:18:04 -04:00
|
|
|
enabled: boolean,
|
|
|
|
manualApproval: boolean
|
2019-04-08 08:04:57 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-17 04:32:03 -05:00
|
|
|
}
|