register-server-setting.model.ts 476 B

123456789101112
  1. import { RegisterClientFormFieldOptions } from '../../client'
  2. export type RegisterServerSettingOptions = RegisterClientFormFieldOptions & {
  3. // If the setting is not private, anyone can view its value (client code included)
  4. // If the setting is private, only server-side hooks can access it
  5. // Mainly used by the PeerTube client to get admin config
  6. private: boolean
  7. }
  8. export interface RegisteredServerSettings {
  9. registeredSettings: RegisterServerSettingOptions[]
  10. }