2018-04-19 04:01:34 -05:00
|
|
|
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
|
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
export interface CustomConfig {
|
2018-01-31 09:42:40 -06:00
|
|
|
instance: {
|
|
|
|
name: string
|
2018-03-15 08:31:08 -05:00
|
|
|
shortDescription: string
|
2018-01-31 09:42:40 -06:00
|
|
|
description: string
|
|
|
|
terms: string
|
2019-08-23 08:23:27 -05:00
|
|
|
codeOfConduct: string
|
|
|
|
|
2019-09-03 02:49:04 -05:00
|
|
|
creationReason: string
|
2019-08-23 08:23:27 -05:00
|
|
|
moderationInformation: string
|
|
|
|
administrator: string
|
|
|
|
maintenanceLifetime: string
|
|
|
|
businessModel: string
|
2019-09-05 02:43:35 -05:00
|
|
|
hardwareInformation: string
|
2019-08-23 08:23:27 -05:00
|
|
|
|
|
|
|
languages: string[]
|
|
|
|
categories: number[]
|
|
|
|
|
2019-02-20 08:36:43 -06:00
|
|
|
isNSFW: boolean
|
2018-03-01 06:57:29 -06:00
|
|
|
defaultClientRoute: string
|
2018-04-19 04:01:34 -05:00
|
|
|
defaultNSFWPolicy: NSFWPolicyType
|
2018-02-22 03:22:53 -06:00
|
|
|
customizations: {
|
|
|
|
javascript?: string
|
|
|
|
css?: string
|
|
|
|
}
|
2018-01-31 09:42:40 -06:00
|
|
|
}
|
|
|
|
|
2019-07-09 04:45:19 -05:00
|
|
|
theme: {
|
|
|
|
default: string
|
|
|
|
}
|
|
|
|
|
2018-05-10 05:26:47 -05:00
|
|
|
services: {
|
|
|
|
twitter: {
|
|
|
|
username: string
|
|
|
|
whitelisted: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
cache: {
|
|
|
|
previews: {
|
|
|
|
size: number
|
|
|
|
}
|
2018-07-12 12:02:00 -05:00
|
|
|
|
|
|
|
captions: {
|
|
|
|
size: number
|
|
|
|
}
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
signup: {
|
|
|
|
enabled: boolean
|
|
|
|
limit: number
|
2018-08-31 02:18:19 -05:00
|
|
|
requiresEmailVerification: boolean
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
admin: {
|
|
|
|
email: string
|
|
|
|
}
|
|
|
|
|
2019-01-09 08:14:29 -06:00
|
|
|
contactForm: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
user: {
|
|
|
|
videoQuota: number
|
2018-08-28 02:01:35 -05:00
|
|
|
videoQuotaDaily: number
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
transcoding: {
|
|
|
|
enabled: boolean
|
2018-12-11 07:52:50 -06:00
|
|
|
allowAdditionalExtensions: boolean
|
2019-05-16 09:55:34 -05:00
|
|
|
allowAudioFiles: boolean
|
2018-01-17 03:32:03 -06:00
|
|
|
threads: number
|
|
|
|
resolutions: {
|
|
|
|
'240p': boolean
|
|
|
|
'360p': boolean
|
|
|
|
'480p': boolean
|
|
|
|
'720p': boolean
|
|
|
|
'1080p': boolean
|
2019-06-12 10:26:23 -05:00
|
|
|
'2160p': boolean
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|
2019-01-29 01:37:25 -06:00
|
|
|
hls: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-02 04:26:47 -05:00
|
|
|
|
|
|
|
autoBlacklist: {
|
|
|
|
videos: {
|
|
|
|
ofUsers: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-08 07:04:57 -05:00
|
|
|
followers: {
|
|
|
|
instance: {
|
2019-04-08 08:18:04 -05:00
|
|
|
enabled: boolean,
|
|
|
|
manualApproval: boolean
|
2019-04-08 07:04:57 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-30 09:50:12 -05:00
|
|
|
followings: {
|
|
|
|
instance: {
|
|
|
|
autoFollowBack: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
autoFollowIndex: {
|
|
|
|
enabled: boolean
|
|
|
|
indexUrl: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|