From 8261445e3616eda4de3cf3a4e529bde9835c0f7c Mon Sep 17 00:00:00 2001 From: benero Date: Thu, 20 Jun 2024 15:03:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/default.py | 4 ++++ itsm/sites/views.py | 1 + 2 files changed, 5 insertions(+) diff --git a/config/default.py b/config/default.py index dc241962..a488f277 100644 --- a/config/default.py +++ b/config/default.py @@ -953,3 +953,7 @@ def redirect_func(request): NOTIFY_ROUTER_NAME = os.getenv("BKAPP_NOTIFY_ROUTER_NAME", "router") IAM_SDK_CLIENT_TIMEOUT = int(os.getenv("BKAPP_IAM_SDK_CLIENT_TIMEOUT", 20)) + + +# 公共 header / footer +BK_SHARED_RES_URL = os.getenv("BKPAAS_SHARED_RES_URL") or os.getenv("BKAPP_SHARED_RES_URL") diff --git a/itsm/sites/views.py b/itsm/sites/views.py index fbcbe572..d68cf809 100644 --- a/itsm/sites/views.py +++ b/itsm/sites/views.py @@ -135,6 +135,7 @@ def index(request): "DOC_URL": settings.BK_DOC_URL, "SOPS_URL": settings.SOPS_SITE_URL, "NOTICE_CENTER_SWITCH": notice_center_switch_value, + "BK_SHARED_RES_URL": settings.BK_SHARED_RES_URL, }, )