From 168b975c4b684d31e6685999e2e267ce75e6befa Mon Sep 17 00:00:00 2001 From: Jan Pawellek <2392542+janpawellek@users.noreply.github.com> Date: Fri, 15 Sep 2023 18:07:26 +0700 Subject: [PATCH] Make the brand name configurable --- .env.template | 3 +++ backaind/templates/_includes/main_menu.html | 2 +- backaind/templates/base.html | 6 ++++-- backaind/templates/settings/external_providers.html | 8 ++++---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.env.template b/.env.template index fc3564d..d992c96 100644 --- a/.env.template +++ b/.env.template @@ -5,6 +5,9 @@ OWNAI_SECRET_KEY=PleaseReplace # The database URI (the default sqlite:///ownAI.db is a SQLite database in the instance folder) OWNAI_SQLALCHEMY_DATABASE_URI=sqlite:///ownAI.db +# The application's name +OWNAI_BRAND=ownAI + # API tokens and settings # (you only need to set these if you want to use the specific API) AI21_API_KEY= diff --git a/backaind/templates/_includes/main_menu.html b/backaind/templates/_includes/main_menu.html index 075d7e0..15e17a8 100644 --- a/backaind/templates/_includes/main_menu.html +++ b/backaind/templates/_includes/main_menu.html @@ -5,7 +5,7 @@ data-bs-toggle="dropdown" aria-expanded="false" > - ownAI + {{ config.BRAND|default('ownAI') }}