From 8314015d25b7d25bb4b9e9b4a80f8333964ffc82 Mon Sep 17 00:00:00 2001 From: liuliaozhong Date: Fri, 27 Dec 2024 16:45:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B=20#2765?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.允许访问preview微服务 --- src/gateway/lua/router_srv.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gateway/lua/router_srv.lua b/src/gateway/lua/router_srv.lua index ec28535b7f..8670167f40 100644 --- a/src/gateway/lua/router_srv.lua +++ b/src/gateway/lua/router_srv.lua @@ -20,7 +20,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -- 访问限制微服务 -- local allow_services = { "auth", "repository", "generic", "docker", "oci", "maven", "job", "helm", "pypi", "opdata", "rpm", "s3", "git", "npm", "fs-server", "analyst", - "replication", "git", "nuget", "composer", "media", "ddc", "conan", "job-schedule", "websocket" } + "replication", "git", "nuget", "composer", "media", "ddc", "conan", "job-schedule", + "websocket", "preview" } local service_name = ngx.var.service if not arrayUtil:isInArray(service_name, allow_services) then