aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/plugins/server/settings/register-server-setting.model.ts
blob: d9a798cac0f1227bf3a849fa3d36e71c8fca1f6f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                             
 
                                                                             

                                                                                    

                                                           


                                           
                                                    
 
import { RegisterClientFormFieldOptions } from '../../client'

export type RegisterServerSettingOptions = RegisterClientFormFieldOptions & {
  // 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
}

export interface RegisteredServerSettings {
  registeredSettings: RegisterServerSettingOptions[]
}