diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/plugins/public-server.setting.ts | 3 | ||||
-rw-r--r-- | shared/models/plugins/register-server-setting.model.ts | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/shared/models/plugins/public-server.setting.ts b/shared/models/plugins/public-server.setting.ts new file mode 100644 index 000000000..9802c4d7d --- /dev/null +++ b/shared/models/plugins/public-server.setting.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export interface PublicServerSetting { | ||
2 | publicSettings: { [ name: string ]: string } | ||
3 | } | ||
diff --git a/shared/models/plugins/register-server-setting.model.ts b/shared/models/plugins/register-server-setting.model.ts index 5dea93c39..78c5abd1b 100644 --- a/shared/models/plugins/register-server-setting.model.ts +++ b/shared/models/plugins/register-server-setting.model.ts | |||
@@ -2,9 +2,15 @@ export interface RegisterServerSettingOptions { | |||
2 | name: string | 2 | name: string |
3 | label: string | 3 | label: string |
4 | type: 'input' | 4 | type: 'input' |
5 | |||
6 | // If the setting is not private, anyone can view its value | ||
7 | // Mainly used by the PeerTube client to get admin config | ||
8 | private: boolean | ||
9 | |||
10 | // Default setting value | ||
5 | default?: string | 11 | default?: string |
6 | } | 12 | } |
7 | 13 | ||
8 | export interface RegisteredServerSettings { | 14 | export interface RegisteredServerSettings { |
9 | settings: RegisterServerSettingOptions[] | 15 | registeredSettings: RegisterServerSettingOptions[] |
10 | } | 16 | } |