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, }, )