2018-04-19 04:01:34 -05:00
|
|
|
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
|
2020-05-28 04:15:38 -05:00
|
|
|
import { BroadcastMessageLevel } from './broadcast-message-level.type'
|
2018-04-19 04:01:34 -05:00
|
|
|
|
2020-09-17 02:20:52 -05:00
|
|
|
export type ConfigResolutions = {
|
2021-11-05 04:23:02 -05:00
|
|
|
'144p': boolean
|
2020-09-17 02:20:52 -05:00
|
|
|
'240p': boolean
|
|
|
|
'360p': boolean
|
|
|
|
'480p': boolean
|
|
|
|
'720p': boolean
|
|
|
|
'1080p': boolean
|
2020-12-24 11:02:04 -06:00
|
|
|
'1440p': boolean
|
2020-09-17 02:20:52 -05:00
|
|
|
'2160p': boolean
|
|
|
|
}
|
|
|
|
|
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-04-19 04:01:34 -05:00
|
|
|
defaultNSFWPolicy: NSFWPolicyType
|
2021-01-25 18:53:13 -06:00
|
|
|
|
|
|
|
defaultClientRoute: string
|
|
|
|
|
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
|
|
|
|
}
|
2021-12-03 10:04:47 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
client: {
|
|
|
|
videos: {
|
|
|
|
miniature: {
|
|
|
|
preferAuthorDisplayName: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
menu: {
|
|
|
|
login: {
|
|
|
|
redirectOnSingleExternalAuth: boolean
|
|
|
|
}
|
|
|
|
}
|
2018-05-10 05:26:47 -05:00
|
|
|
}
|
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
cache: {
|
|
|
|
previews: {
|
|
|
|
size: number
|
|
|
|
}
|
2018-07-12 12:02:00 -05:00
|
|
|
|
|
|
|
captions: {
|
|
|
|
size: number
|
|
|
|
}
|
2021-02-18 04:07:08 -06:00
|
|
|
|
|
|
|
torrents: {
|
|
|
|
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
|
2021-04-24 04:57:01 -05:00
|
|
|
minimumAge: number
|
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
|
|
|
}
|
|
|
|
|
2021-10-26 09:42:10 -05:00
|
|
|
videoChannels: {
|
|
|
|
maxPerUser: number
|
|
|
|
}
|
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
transcoding: {
|
|
|
|
enabled: boolean
|
2019-11-15 08:06:03 -06:00
|
|
|
|
2018-12-11 07:52:50 -06:00
|
|
|
allowAdditionalExtensions: boolean
|
2019-05-16 09:55:34 -05:00
|
|
|
allowAudioFiles: boolean
|
2019-11-15 08:06:03 -06:00
|
|
|
|
2018-01-17 03:32:03 -06:00
|
|
|
threads: number
|
2021-02-08 03:51:10 -06:00
|
|
|
concurrency: number
|
2021-01-28 08:52:44 -06:00
|
|
|
|
|
|
|
profile: string
|
|
|
|
|
2020-09-17 02:20:52 -05:00
|
|
|
resolutions: ConfigResolutions & { '0p': boolean }
|
2019-11-15 08:06:03 -06:00
|
|
|
|
2022-08-05 03:36:19 -05:00
|
|
|
alwaysTranscodeOriginalResolution: boolean
|
|
|
|
|
2019-11-15 08:06:03 -06:00
|
|
|
webtorrent: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2020-09-17 02:20:52 -05:00
|
|
|
live: {
|
|
|
|
enabled: boolean
|
|
|
|
|
2020-09-25 09:19:35 -05:00
|
|
|
allowReplay: boolean
|
2020-10-28 09:24:40 -05:00
|
|
|
|
2022-03-04 06:40:02 -06:00
|
|
|
latencySetting: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
2020-09-25 09:19:35 -05:00
|
|
|
maxDuration: number
|
2020-10-28 09:24:40 -05:00
|
|
|
maxInstanceLives: number
|
|
|
|
maxUserLives: number
|
2020-09-25 09:19:35 -05:00
|
|
|
|
2020-09-17 02:20:52 -05:00
|
|
|
transcoding: {
|
|
|
|
enabled: boolean
|
|
|
|
threads: number
|
2021-01-28 08:52:44 -06:00
|
|
|
profile: string
|
2020-09-17 02:20:52 -05:00
|
|
|
resolutions: ConfigResolutions
|
2022-08-05 03:36:19 -05:00
|
|
|
alwaysTranscodeOriginalResolution: boolean
|
2020-09-17 02:20:52 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-22 10:58:49 -05:00
|
|
|
videoStudio: {
|
2022-02-11 03:51:33 -06:00
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
|
2018-08-03 04:10:31 -05:00
|
|
|
import: {
|
|
|
|
videos: {
|
2021-02-08 03:51:10 -06:00
|
|
|
concurrency: number
|
|
|
|
|
2018-08-03 04:10:31 -05:00
|
|
|
http: {
|
|
|
|
enabled: boolean
|
2020-01-31 09:56:52 -06:00
|
|
|
}
|
2018-08-07 03:07:53 -05:00
|
|
|
torrent: {
|
|
|
|
enabled: boolean
|
2018-08-03 04:10:31 -05:00
|
|
|
}
|
|
|
|
}
|
2022-08-10 02:53:39 -05:00
|
|
|
videoChannelSynchronization: {
|
|
|
|
enabled: boolean
|
|
|
|
maxPerUser: number
|
|
|
|
}
|
2018-08-03 04:10:31 -05:00
|
|
|
}
|
2019-04-02 04:26:47 -05:00
|
|
|
|
2021-01-27 10:15:21 -06:00
|
|
|
trending: {
|
|
|
|
videos: {
|
|
|
|
algorithms: {
|
|
|
|
enabled: string[]
|
|
|
|
default: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-02 04:26:47 -05:00
|
|
|
autoBlacklist: {
|
|
|
|
videos: {
|
|
|
|
ofUsers: {
|
|
|
|
enabled: boolean
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-08 07:04:57 -05:00
|
|
|
followers: {
|
|
|
|
instance: {
|
2020-01-31 09:56:52 -06:00
|
|
|
enabled: boolean
|
2019-04-08 08:18:04 -05:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-28 04:15:38 -05:00
|
|
|
|
|
|
|
broadcastMessage: {
|
|
|
|
enabled: boolean
|
|
|
|
message: string
|
|
|
|
level: BroadcastMessageLevel
|
|
|
|
dismissable: boolean
|
|
|
|
}
|
2020-05-29 09:16:24 -05:00
|
|
|
|
|
|
|
search: {
|
|
|
|
remoteUri: {
|
|
|
|
users: boolean
|
|
|
|
anonymous: boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
searchIndex: {
|
|
|
|
enabled: boolean
|
|
|
|
url: string
|
|
|
|
disableLocalSearch: boolean
|
|
|
|
isDefaultSearch: boolean
|
|
|
|
}
|
|
|
|
}
|
2018-01-17 03:32:03 -06:00
|
|
|
}
|