import { NSFWPolicyType } from '../videos/nsfw-policy.type'
import { ClientScript } from '../plugins/plugin-package-json.model'
-import { PluginClientScope } from '../plugins/plugin-scope.type'
export interface ServerConfigPlugin {
name: string
version: string
description: string
- clientScripts: { [name in PluginClientScope]: ClientScript }
+ clientScripts: { [name: string]: ClientScript }
}
export interface ServerConfigTheme extends ServerConfigPlugin {
}
}
+ search: {
+ remoteUri: {
+ users: boolean
+ anonymous: boolean
+ }
+ }
+
plugin: {
registered: ServerConfigPlugin[]
}
}
signup: {
- allowed: boolean,
+ allowed: boolean
allowedForCurrentIP: boolean
requiresEmailVerification: boolean
}
enabled: boolean
}
+ webtorrent: {
+ enabled: boolean
+ }
+
enabledResolutions: number[]
}
max: number
}
extensions: string[]
- },
+ }
file: {
extensions: string[]
}
file: {
size: {
max: number
- },
+ }
extensions: string[]
}
}
tracker: {
enabled: boolean
}
+
+ followings: {
+ instance: {
+ autoFollowIndex: {
+ indexUrl: string
+ }
+ }
+ }
}