123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- import { NSFWPolicyType } from '../videos/nsfw-policy.type'
- import { ClientScript } from '../plugins/plugin-package-json.model'
- export interface ServerConfigPlugin {
- name: string
- version: string
- description: string
- clientScripts: { [name: string]: ClientScript }
- }
- export interface ServerConfigTheme extends ServerConfigPlugin {
- css: string[]
- }
- export interface RegisteredExternalAuthConfig {
- npmName: string
- authName: string
- authDisplayName: string
- }
- export interface RegisteredIdAndPassAuthConfig {
- npmName: string
- authName: string
- weight: number
- }
- export interface ServerConfig {
- serverVersion: string
- serverCommit?: string
- instance: {
- name: string
- shortDescription: string
- defaultClientRoute: string
- isNSFW: boolean
- defaultNSFWPolicy: NSFWPolicyType
- customizations: {
- javascript: string
- css: string
- }
- }
- search: {
- remoteUri: {
- users: boolean
- anonymous: boolean
- }
- }
- plugin: {
- registered: ServerConfigPlugin[]
- registeredExternalAuths: RegisteredExternalAuthConfig[]
- registeredIdAndPassAuths: RegisteredIdAndPassAuthConfig[]
- }
- theme: {
- registered: ServerConfigTheme[]
- default: string
- }
- email: {
- enabled: boolean
- }
- contactForm: {
- enabled: boolean
- }
- signup: {
- allowed: boolean
- allowedForCurrentIP: boolean
- requiresEmailVerification: boolean
- }
- transcoding: {
- hls: {
- enabled: boolean
- }
- webtorrent: {
- enabled: boolean
- }
- enabledResolutions: number[]
- }
- import: {
- videos: {
- http: {
- enabled: boolean
- }
- torrent: {
- enabled: boolean
- }
- }
- }
- autoBlacklist: {
- videos: {
- ofUsers: {
- enabled: boolean
- }
- }
- }
- avatar: {
- file: {
- size: {
- max: number
- }
- extensions: string[]
- }
- }
- video: {
- image: {
- size: {
- max: number
- }
- extensions: string[]
- }
- file: {
- extensions: string[]
- }
- }
- videoCaption: {
- file: {
- size: {
- max: number
- }
- extensions: string[]
- }
- }
- user: {
- videoQuota: number
- videoQuotaDaily: number
- }
- trending: {
- videos: {
- intervalDays: number
- }
- }
- tracker: {
- enabled: boolean
- }
- followings: {
- instance: {
- autoFollowIndex: {
- indexUrl: string
- }
- }
- }
- }
|