]>
Commit | Line | Data |
---|---|---|
1 | export interface RegisterServerSettingOptions { | |
2 | name: string | |
3 | label: string | |
4 | type: 'input' | 'input-checkbox' | 'input-textarea' | |
5 | ||
6 | // If the setting is not private, anyone can view its value (client code included) | |
7 | // If the setting is private, only server-side hooks can access it | |
8 | // Mainly used by the PeerTube client to get admin config | |
9 | private: boolean | |
10 | ||
11 | // Default setting value | |
12 | default?: string | |
13 | } | |
14 | ||
15 | export interface RegisteredServerSettings { | |
16 | registeredSettings: RegisterServerSettingOptions[] | |
17 | } |