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

                                                                                    

                                                           


                                           
                                                    
 
import { RegisterClientFormFieldOptions } from './register-client-form-field.model'

export interface RegisterServerSettingOptions extends 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[]
}