2019-07-24 11:17:42 +02:00
|
|
|
export interface RegisterServerSettingOptions {
|
|
|
|
name: string
|
|
|
|
label: string
|
2020-02-10 14:25:38 +01:00
|
|
|
type: 'input' | 'input-checkbox' | 'input-textarea'
|
2019-07-26 09:35:43 +02:00
|
|
|
|
2019-11-25 11:16:12 +01:00
|
|
|
// If the setting is not private, anyone can view its value (client code included)
|
|
|
|
// If the setting is private, only server-side hooks can access it
|
2019-07-26 09:35:43 +02:00
|
|
|
// Mainly used by the PeerTube client to get admin config
|
|
|
|
private: boolean
|
|
|
|
|
|
|
|
// Default setting value
|
2019-07-24 11:17:42 +02:00
|
|
|
default?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RegisteredServerSettings {
|
2019-07-26 09:35:43 +02:00
|
|
|
registeredSettings: RegisterServerSettingOptions[]
|
2019-07-24 11:17:42 +02:00
|
|
|
}
|