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