aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/register-server-setting.model.ts
blob: 65a1817054664e84e8e6b930373d131b99a4c406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export interface RegisterServerSettingOptions {
  name: string
  label: string
  type: 'input'

  // 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
  // Mainly used by the PeerTube client to get admin config
  private: boolean

  // Default setting value
  default?: string
}

export interface RegisteredServerSettings {
  registeredSettings: RegisterServerSettingOptions[]
}