[docs]classDashboardSettings(ApplicationSettingsMixin,Configurable):"""Root settings for the dashboard application."""port:int=Field(4080,description="Port on which the dashboard application will be served.",)auth:Optional[BasicAuthSettings]=Field(None,discriminator="type",description="Authentication settings for the dashboard.",)devserver:Optional[DevserverSettings]=Field(default_factory=DevserverSettings,description="Development server settings, only useful for internal frontend development.",)public_url:Optional[str]=Field(None,description="Public URL of the dashboard application, used to generate absolute links, for example in notifications.",)
[docs]@model_validator(mode="before")@classmethoddefreject_deprecated_enable_ui(cls,data:Any)->Any:ifisinstance(data,dict)and"enable_ui"indata:raiseValueError("The 'enable_ui' setting has been removed. ""Use 'enabled: false' instead to disable the dashboard application entirely.")returndata