From 643c3f976b6d3dcc3fe582deb4b16fb371cfbbc2 Mon Sep 17 00:00:00 2001 From: jianjun Date: Fri, 3 Jul 2020 17:36:36 +0800 Subject: [PATCH] =?UTF-8?q?gateway=E6=B7=BB=E5=8A=A0openapi=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-gateway/pom.xml | 5 +++++ epmet-gateway/src/main/resources/bootstrap.yml | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/epmet-gateway/pom.xml b/epmet-gateway/pom.xml index 511b0bd1cc..2007872c20 100644 --- a/epmet-gateway/pom.xml +++ b/epmet-gateway/pom.xml @@ -182,6 +182,9 @@ lb://data-statistical-server + + lb://epmet-openapi-scan + @@ -262,6 +265,8 @@ lb://data-report-server lb://data-statistical-server + + lb://epmet-openapi-scan diff --git a/epmet-gateway/src/main/resources/bootstrap.yml b/epmet-gateway/src/main/resources/bootstrap.yml index f67bd8fdec..4d910e0f02 100644 --- a/epmet-gateway/src/main/resources/bootstrap.yml +++ b/epmet-gateway/src/main/resources/bootstrap.yml @@ -277,6 +277,15 @@ spring: filters: - StripPrefix=1 - CpAuth=true + #内容审核服务 + - id: epmet-openapi-scan + uri: @gateway.routes.epmet-openapi-scan.uri@ + order: 29 + predicates: + - Path=${server.servlet.context-path}/epmetscan/** + filters: + - StripPrefix=1 + - CpAuth=true nacos: discovery: server-addr: @nacos.server-addr@