diff --git a/archery/settings.py b/archery/settings.py index d9ce6f6b1b..de45f1dd41 100644 --- a/archery/settings.py +++ b/archery/settings.py @@ -486,6 +486,9 @@ }, } +# 在网站标题及登录页面追加此内容, 可用于多archery实例的区分。Archery后台也有相同配置,如都做了配置,以后台配置为准 +CUSTOM_TITLE_SUFFIX = env("CUSTOM_TITLE_SUFFIX", default="") + MEDIA_ROOT = os.path.join(BASE_DIR, "media") if not os.path.exists(MEDIA_ROOT): os.mkdir(MEDIA_ROOT) diff --git a/common/templates/base.html b/common/templates/base.html index f0ea044d7c..0f5a4dc6b1 100644 --- a/common/templates/base.html +++ b/common/templates/base.html @@ -7,7 +7,7 @@ - Archery-SQL审核查询平台 + {% block title %}Archery-SQL审核查询平台{{ custom_title_suffix }}{% endblock %} @@ -35,7 +35,7 @@ - Archery + Archery{{ custom_title_suffix }} diff --git a/common/templates/config.html b/common/templates/config.html index c9732458b6..93af8eeb1f 100755 --- a/common/templates/config.html +++ b/common/templates/config.html @@ -1099,6 +1099,17 @@

其他配置

+
+ +
+ +
+

diff --git a/common/templates/login.html b/common/templates/login.html index 817a0d71bf..064ce07926 100644 --- a/common/templates/login.html +++ b/common/templates/login.html @@ -1,7 +1,7 @@ - Login To Archery + Login To Archery{{ custom_title_suffix }} {% load static %} @@ -18,7 +18,7 @@

- +
\ No newline at end of file diff --git a/src/docker-compose/.env b/src/docker-compose/.env index 64f589f090..18a3f709d5 100644 --- a/src/docker-compose/.env +++ b/src/docker-compose/.env @@ -19,3 +19,6 @@ Q_CLUISTER_WORKERS=4 Q_CLUISTER_TIMEOUT=60 Q_CLUISTER_SYNC=false +# 在网站标题及登录页面追加此内容, 可用于多archery实例的区分。Archery后台也有相同配置,如都做了配置,以后台配置为准 +CUSTOM_TITLE_SUFFIX = "" +