From fbb0e281034636299cb2f8e51b5cbc60de398235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZR20090193-=E9=99=88=E6=95=AC=E5=8B=87?= Date: Fri, 7 Jun 2024 15:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=BD=91=E5=85=B3=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E6=96=87=E4=BB=B6=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.Gateway/ocelot.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ds-wms-service/DS.WMS.Gateway/ocelot.json b/ds-wms-service/DS.WMS.Gateway/ocelot.json index c98f2f46..9117cd3b 100644 --- a/ds-wms-service/DS.WMS.Gateway/ocelot.json +++ b/ds-wms-service/DS.WMS.Gateway/ocelot.json @@ -165,6 +165,23 @@ "LoadBalancerOptions": { "Type": "RoundRobin" } + }, + { + "DownstreamPathTemplate": "/LinkAttach/{url}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 3000 + } + ], + "UpstreamPathTemplate": "/LinkAttach/{url}", + "UpstreamHttpMethod": [ "Get" ], + "FileCacheOptions": { + "TtlSeconds": 3600 + }, + "ReRouteIsCaseSensitive": false, + "UseServiceDiscovery": false } ], "GlobalConfiguration": {