Browse Source

yarp configuration

gterdem/swagger_update
malik masis 4 years ago
parent
commit
7592e3a419
  1. 2
      apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj
  2. 20
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json
  3. 2
      services/cmskit/src/EShopOnAbp.CmskitService.HttpApi.Host/appsettings.json

2
apps/public-web/src/EShopOnAbp.PublicWeb/EShopOnAbp.PublicWeb.csproj

@ -8,6 +8,8 @@
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.7" />
<PackageReference Include="Volo.Abp.AutoMapper" Version="5.1.2" />
<PackageReference Include="Volo.CmsKit.Domain" Version="5.1.2" />
<PackageReference Include="Volo.CmsKit.Public.Web" Version="5.1.2" />
<PackageReference Include="Yarp.ReverseProxy" Version="1.0.0" />
</ItemGroup>

20
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" ]
}
}
},

2
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",

Loading…
Cancel
Save