Skip to content

Commit

Permalink
Merge pull request #343 from alex-smile/update_esb_bk_log_apis
Browse files Browse the repository at this point in the history
paas2/esb get config from settings
  • Loading branch information
MrLYC authored May 26, 2021
2 parents df9e66c + 602dfb4 commit a73dd2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions paas2/paas/conf/settings_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
BK_APIGW_URL = env.str("BK_APIGW_URL", "")
# API 网关文档中心地址
BK_APIGW_DOC_URL = env.str("BK_APIGW_DOC_URL", "")
# 是否隐藏菜单项:ESB 管理中的自助接入
BK_ESB_MENU_ITEM_BUFFET_HIDDEN = env.bool("BK_ESB_MENU_ITEM_BUFFET_HIDDEN", False)

# third-party hosts
# host for cc
Expand Down
7 changes: 2 additions & 5 deletions paas2/paas/esb/configs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
specific language governing permissions and limitations under the License.
"""

import environ
from django.conf import settings
from django.utils.translation import pgettext, ugettext

env = environ.Env()


BK_APIGW_URL = env.str("BK_APIGW_URL", "")
BK_APIGW_URL = getattr(settings, "BK_APIGW_URL", "")
APIGATEWAY_ENABLED = bool(BK_APIGW_URL)
BK_ESB_MENU_ITEM_BUFFET_HIDDEN = env.bool("BK_ESB_MENU_ITEM_BUFFET_HIDDEN", False)
BK_ESB_MENU_ITEM_BUFFET_HIDDEN = getattr(settings, "BK_ESB_MENU_ITEM_BUFFET_HIDDEN", False)


menu_items = [
Expand Down

0 comments on commit a73dd2b

Please sign in to comment.