Skip to content

Commit

Permalink
Merge pull request #1352 from benero/feat_res_url
Browse files Browse the repository at this point in the history
Feature: 新增公共资源环境变量
  • Loading branch information
benero authored Jun 20, 2024
2 parents 9c46a07 + 8261445 commit 66103bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
1 change: 1 addition & 0 deletions itsm/sites/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)

Expand Down

0 comments on commit 66103bf

Please sign in to comment.