2019-07-24 05:17:42 -04:00
|
|
|
export interface RegisterServerSettingOptions {
|
|
|
|
name: string
|
|
|
|
label: string
|
2020-04-20 08:51:24 -04:00
|
|
|
type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
|
2019-07-26 03:35:43 -04:00
|
|
|
|
2019-11-25 05:16:12 -05: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 03:35:43 -04:00
|
|
|
// Mainly used by the PeerTube client to get admin config
|
|
|
|
private: boolean
|
|
|
|
|
|
|
|
// Default setting value
|
2020-04-28 08:49:03 -04:00
|
|
|
default?: string | boolean
|
2019-07-24 05:17:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RegisteredServerSettings {
|
2019-07-26 03:35:43 -04:00
|
|
|
registeredSettings: RegisterServerSettingOptions[]
|
2019-07-24 05:17:42 -04:00
|
|
|
}
|