diff --git a/api/system/info.py b/api/system/info.py index f4d1ca84..7caa5186 100644 --- a/api/system/info.py +++ b/api/system/info.py @@ -70,6 +70,7 @@ class InfoResponseModel(OPModel): user: UserEntity.model.main_model | None = Field(None, title="User information") # type: ignore attributes: list[AttributeModel] | None = Field(None, title="List of attributes") + instance_banner: str | None = Field(None, title="Instance banner") sites: list[SiteInfo] | None = Field(None, title="List of sites") sso_options: list[SSOOption] | None = Field(None, title="SSO options") extras: str | None = Field(None) @@ -254,6 +255,7 @@ async def get_additional_info(user: UserEntity, request: Request): "attributes": attr_list, "sites": sites, "extras": extras, + "instance_banner": ayonconfig.instance_banner, } diff --git a/ayon_server/config/ayonconfig.py b/ayon_server/config/ayonconfig.py index 90e65a15..91b4c8b7 100644 --- a/ayon_server/config/ayonconfig.py +++ b/ayon_server/config/ayonconfig.py @@ -144,6 +144,11 @@ class AyonConfig(BaseModel): description="Path to the MOTD file", ) + instance_banner: str | None = Field( + default=None, + description="Banner to be displayed in the web interface", + ) + login_page_background: str | None = Field( default=None, description="Login page background image",