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