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