Skip to content

Commit

Permalink
Merge pull request #8538 from stubenhuang/issue-gateway-cdn-ces-8493
Browse files Browse the repository at this point in the history
feat: 网关前端支持CDN配置 #8493
  • Loading branch information
irwinsun authored Mar 24, 2023
2 parents 288073e + fad5043 commit 2220825
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions helm-charts/core/ci/base/default_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ bkCiNotifyEmailSendChannel: blueking
bkCiInitLocale: zh-CN
bkCiRedisSsl: false
bkCiEsHttps: false
bkCiFrontendIndex: "rewrite .* /$subsystem/index.html break"
2 changes: 2 additions & 0 deletions scripts/bkenv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ BK_CI_STREAM_HOST=devops.example.com
BK_CI_CLUSTER_TAG=devops
# BK_CI_DEVOPS_TOKEN
BK_CI_DEVOPS_TOKEN=devops
# BK_CI_FRONTEND_INDEX
BK_CI_FRONTEND_INDEX="rewrite .* /$subsystem/index.html break"

##########
# 2-公共依赖
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import com.tencent.devops.common.client.ClientTokenService
import com.tencent.devops.common.pipeline.enums.ChannelCode
import com.tencent.devops.common.redis.RedisOperation
import com.tencent.devops.common.service.utils.LogUtils
import com.tencent.devops.common.service.utils.MessageCodeUtil
import com.tencent.devops.common.util.PinyinUtil
import com.tencent.devops.model.process.tables.records.TPipelineInfoRecord
import com.tencent.devops.model.process.tables.records.TPipelineViewRecord
Expand Down Expand Up @@ -494,7 +495,7 @@ class PipelineViewGroupService @Autowired constructor(
projectViewList.add(
PipelineViewDict.ViewInfo(
viewId = PIPELINE_VIEW_UNCLASSIFIED,
viewName = "未分组",
viewName = ungroupedName(),
pipelineList = pipelineInfoMap.values
.filterNot { classifiedPipelineIds.contains(it.pipelineId) }
.map {
Expand Down Expand Up @@ -658,7 +659,7 @@ class PipelineViewGroupService @Autowired constructor(
0, PipelineNewViewSummary(
id = PIPELINE_VIEW_UNCLASSIFIED,
projectId = projectId,
name = "未分组",
name = ungroupedName(),
projected = true,
createTime = LocalDateTime.now().timestamp(),
updateTime = LocalDateTime.now().timestamp(),
Expand Down Expand Up @@ -756,6 +757,8 @@ class PipelineViewGroupService @Autowired constructor(
}
}

private fun ungroupedName() = MessageCodeUtil.getMessageByLocale("未分组", "Ungrouped")

companion object {
private val logger = LoggerFactory.getLogger(PipelineViewGroupService::class.java)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
if ($uri ~* ^/(\w+)) {
set $subsystem $1;
}
rewrite .* /$subsystem/index.html break;
__BK_CI_FRONTEND_INDEX__ ;
}

0 comments on commit 2220825

Please sign in to comment.