From 7592e3a4190a7f38bdaf2c6dff1d4bc0c0a76d70 Mon Sep 17 00:00:00 2001 From: malik masis Date: Fri, 16 Sep 2022 17:50:49 +0300 Subject: [PATCH] yarp configuration --- .../EShopOnAbp.PublicWeb.csproj | 2 ++ .../src/EShopOnAbp.WebPublicGateway/yarp.json | 20 ++++++++++++++++++- .../appsettings.json | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj b/apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj index 44587bdc..03a8f418 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj @@ -8,6 +8,8 @@ + + diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json index 235c049b..ea1b357f 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json @@ -37,11 +37,29 @@ "Path": "/api/payment/{**everything}" } }, + "Cmskit Service": { + "ClusterId": "cmskitCluster", + "Match": { + "Path": "/api/cmskit/{**everything}" + } + }, + "Cmskit Public Service": { + "ClusterId": "cmskitCluster", + "Match": { + "Path": "/api/cms-kit-public/{**everything}" + } + }, + "Cmskit Admin Service": { + "ClusterId": "cmskitCluster", + "Match": { + "Path": "/api/cms-kit-admin/{**everything}" + } + }, "product-picture-route": { "ClusterId": "productPictureCluster", "Match": { "Path": "/product-images/{**everything}", - "Methods" : [ "GET" ] + "Methods": [ "GET" ] } } }, diff --git a/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/appsettings.json b/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/appsettings.json index 4788a2cc..fab9000d 100644 --- a/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/appsettings.json +++ b/services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/appsettings.json @@ -1,7 +1,7 @@ { "App": { "SelfUrl": "https://localhost:44358", - "CorsOrigins": "https://localhost:44372,https://localhost:44373,http://localhost:4200" + "CorsOrigins": "https://localhost:44372,https://localhost:44373,http://localhost:4200,https://localhost:44335" }, "AuthServer": { "Authority": "https://localhost:44330",