Skip to content

Commit

Permalink
feat(paas/envs): add BK_DOMAIN for all apps (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken authored Jun 27, 2023
1 parent c2f630f commit 16973bd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion paas2/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.14.51
2.14.52
1 change: 1 addition & 0 deletions paas2/paas/app/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_app_env(self, app_code, is_with_db_info=False):
"BK_CC_HOST": bk_cc_host,
"BK_JOB_HOST": bk_job_host,
"BK_API_URL_TMPL": settings.BK_API_URL_TMPL,
"BK_DOMAIN": settings.BK_DOMAIN,
}
# update envs in settings_*.py
envs.update(settings.APP_DEPLOY_ENVS)
Expand Down
2 changes: 2 additions & 0 deletions paas2/paas/conf/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@
BK_APIGW_DOC_URL = ""
# 新版网关访问地址模板, e.g. http://bkapi.example.com/api/{api_name}
BK_API_URL_TMPL = ""
# 蓝鲸使用的domain
BK_DOMAIN = ""

# HTTP CONNECTIONS
REQUESTS_POOL_CONNECTIONS = 20
Expand Down
1 change: 1 addition & 0 deletions paas2/paas/conf/settings_development.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
BK_COOKIE_AGE = 60 * 60 * 24
# cookie访问域
BK_COOKIE_DOMAIN = ".bking.com"
BK_DOMAIN = "bking.com"

# 控制台地址
ENGINE_HOST = "http://127.0.0.1:8000"
Expand Down
1 change: 1 addition & 0 deletions paas2/paas/conf/settings_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

# cookie访问域
BK_COOKIE_DOMAIN = ".bking.com"
BK_DOMAIN = "bking.com"

# domain
PAAS_DOMAIN = "openpaas.o.bking.com"
Expand Down
2 changes: 2 additions & 0 deletions paas2/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Release Log
===============================
# 2.14.52
- add: env var `BK_DOMAIN` for all app

# 2.14.51
- fix: lock greenlet version to 1.1.2
Expand Down

0 comments on commit 16973bd

Please sign in to comment.