Browse Source

Updated yarp configurations

gterdem/swagger_update
Galip Tolga Erdem 3 years ago
parent
commit
09b5bb62b5
  1. 52
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json
  2. 113
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Staging.json
  3. 44
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json
  4. 64
      gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json
  5. 65
      gateways/web/src/EShopOnAbp.WebGateway/yarp.json

52
gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json

@ -1,50 +1,62 @@
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"Account Service": { "AbpApi": {
"ClusterId": "accountCluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/account/{**everything}" "Path": "/api/abp/{**catch-all}"
} }
}, },
"Administration Service": { "Account Service": {
"ClusterId": "administrationCluster", "ClusterId": "Account",
"Match": { "Match": {
"Path": "/api/abp/{**everything}" "Path": "/api/account/{**everything}"
} }
}, },
"Catalog Service": { "Catalog Service": {
"ClusterId": "catalogCluster", "ClusterId": "Catalog",
"Match": { "Match": {
"Path": "/api/catalog/{**everything}" "Path": "/api/catalog/{**everything}"
} }
}, },
"Basket Service": { "Basket Service": {
"ClusterId": "basketCluster", "ClusterId": "Basket",
"Match": { "Match": {
"Path": "/api/basket/{**everything}" "Path": "/api/basket/{**everything}"
} }
}, },
"Ordering Service": { "Ordering Service": {
"ClusterId": "orderingCluster", "ClusterId": "Ordering",
"Match": { "Match": {
"Path": "/api/ordering/{**everything}" "Path": "/api/ordering/{**everything}"
} }
}, },
"Payment Service": { "Payment Service": {
"ClusterId": "paymentCluster", "ClusterId": "Payment",
"Match": { "Match": {
"Path": "/api/payment/{**everything}" "Path": "/api/payment/{**everything}"
} }
}, },
"Cmskit Service": { "Cmskit Service": {
"ClusterId": "cmskitCluster", "ClusterId": "CmsKit",
"Match": { "Match": {
"Path": "/api/cmskit/{**everything}" "Path": "/api/cmskit/{**everything}"
} }
}, },
"Cmskit Public Service": {
"ClusterId": "CmsKit",
"Match": {
"Path": "/api/cms-kit-public/{**everything}"
}
},
"Cmskit Admin Service": {
"ClusterId": "CmsKit",
"Match": {
"Path": "/api/cms-kit-admin/{**everything}"
}
},
"product-picture-route": { "product-picture-route": {
"ClusterId": "productPictureCluster", "ClusterId": "ProductPictures",
"Match": { "Match": {
"Path": "/product-images/{**everything}", "Path": "/product-images/{**everything}",
"Methods": [ "GET" ] "Methods": [ "GET" ]
@ -52,56 +64,56 @@
} }
}, },
"Clusters": { "Clusters": {
"accountCluster": { "Account": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://app-authserver" "Address": "http://app-authserver"
} }
} }
}, },
"administrationCluster": { "Administration": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://administration-service" "Address": "http://administration-service"
} }
} }
}, },
"catalogCluster": { "Catalog": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://catalog-service" "Address": "http://catalog-service"
} }
} }
}, },
"basketCluster": { "Basket": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://basket-service" "Address": "http://basket-service"
} }
} }
}, },
"orderingCluster": { "Ordering": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://ordering-service" "Address": "http://ordering-service"
} }
} }
}, },
"paymentCluster": { "Payment": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://payment-service" "Address": "http://payment-service"
} }
} }
}, },
"cmskitCluster": { "CmsKit": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://cmskit-service" "Address": "http://cmskit-service"
} }
} }
}, },
"productPictureCluster": { "ProductPictures": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://catalog-service" "Address": "http://catalog-service"

113
gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Staging.json

@ -1,113 +0,0 @@
{
"ReverseProxy": {
"Routes": {
"Account Service": {
"ClusterId": "accountCluster",
"Match": {
"Path": "/api/account/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administrationCluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"Catalog Service": {
"ClusterId": "catalogCluster",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Basket Service": {
"ClusterId": "basketCluster",
"Match": {
"Path": "/api/basket/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "orderingCluster",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Payment Service": {
"ClusterId": "paymentCluster",
"Match": {
"Path": "/api/payment/{**everything}"
}
},
"Cmskit Service": {
"ClusterId": "cmskitCluster",
"Match": {
"Path": "/api/cmskit/{**everything}"
}
},
"product-picture-route": {
"ClusterId": "productPictureCluster",
"Match": {
"Path": "/product-images/{**everything}",
"Methods": [ "GET" ]
}
}
},
"Clusters": {
"accountCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-authserver"
}
}
},
"administrationCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-administration"
}
}
},
"catalogCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-catalog"
}
}
},
"basketCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-basket"
}
}
},
"orderingCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-ordering"
}
}
},
"paymentCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-payment"
}
}
},
"cmskitCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-cmskit"
}
}
},
"productPictureCluster": {
"Destinations": {
"destination1": {
"Address": "http://eshop-st-catalog"
}
}
}
}
}
}

44
gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json

@ -1,62 +1,62 @@
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"Account Service": { "AbpApi": {
"ClusterId": "accountCluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/account/{**everything}" "Path": "/api/abp/{**catch-all}"
} }
}, },
"Administration Service": { "Account Service": {
"ClusterId": "administrationCluster", "ClusterId": "Account",
"Match": { "Match": {
"Path": "/api/abp/{**everything}" "Path": "/api/account/{**everything}"
} }
}, },
"Catalog Service": { "Catalog Service": {
"ClusterId": "catalogCluster", "ClusterId": "Catalog",
"Match": { "Match": {
"Path": "/api/catalog/{**everything}" "Path": "/api/catalog/{**everything}"
} }
}, },
"Basket Service": { "Basket Service": {
"ClusterId": "basketCluster", "ClusterId": "Basket",
"Match": { "Match": {
"Path": "/api/basket/{**everything}" "Path": "/api/basket/{**everything}"
} }
}, },
"Ordering Service": { "Ordering Service": {
"ClusterId": "orderingCluster", "ClusterId": "Ordering",
"Match": { "Match": {
"Path": "/api/ordering/{**everything}" "Path": "/api/ordering/{**everything}"
} }
}, },
"Payment Service": { "Payment Service": {
"ClusterId": "paymentCluster", "ClusterId": "Payment",
"Match": { "Match": {
"Path": "/api/payment/{**everything}" "Path": "/api/payment/{**everything}"
} }
}, },
"Cmskit Service": { "Cmskit Service": {
"ClusterId": "cmskitCluster", "ClusterId": "CmsKit",
"Match": { "Match": {
"Path": "/api/cmskit/{**everything}" "Path": "/api/cmskit/{**everything}"
} }
}, },
"Cmskit Public Service": { "Cmskit Public Service": {
"ClusterId": "cmskitCluster", "ClusterId": "CmsKit",
"Match": { "Match": {
"Path": "/api/cms-kit-public/{**everything}" "Path": "/api/cms-kit-public/{**everything}"
} }
}, },
"Cmskit Admin Service": { "Cmskit Admin Service": {
"ClusterId": "cmskitCluster", "ClusterId": "CmsKit",
"Match": { "Match": {
"Path": "/api/cms-kit-admin/{**everything}" "Path": "/api/cms-kit-admin/{**everything}"
} }
}, },
"product-picture-route": { "product-picture-route": {
"ClusterId": "productPictureCluster", "ClusterId": "ProductPictures",
"Match": { "Match": {
"Path": "/product-images/{**everything}", "Path": "/product-images/{**everything}",
"Methods": [ "GET" ] "Methods": [ "GET" ]
@ -64,56 +64,56 @@
} }
}, },
"Clusters": { "Clusters": {
"accountCluster": { "Account": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44330" "Address": "https://localhost:44330"
} }
} }
}, },
"administrationCluster": { "Administration": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44353" "Address": "https://localhost:44353"
} }
} }
}, },
"catalogCluster": { "Catalog": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44354" "Address": "https://localhost:44354"
} }
} }
}, },
"basketCluster": { "Basket": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44355" "Address": "https://localhost:44355"
} }
} }
}, },
"orderingCluster": { "Ordering": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44356" "Address": "https://localhost:44356"
} }
} }
}, },
"paymentCluster": { "Payment": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44357" "Address": "https://localhost:44357"
} }
} }
}, },
"cmskitCluster": { "CmsKit": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44358" "Address": "https://localhost:44358"
} }
} }
}, },
"productPictureCluster": { "ProductPictures": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44354" "Address": "https://localhost:44354"

64
gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json

@ -1,6 +1,12 @@
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"AbpApi": {
"ClusterId": "Administration",
"Match": {
"Path": "/api/abp/{**catch-all}"
}
},
"Account Service": { "Account Service": {
"ClusterId": "accountCluster", "ClusterId": "accountCluster",
"Match": { "Match": {
@ -8,79 +14,91 @@
} }
}, },
"Identity Service": { "Identity Service": {
"ClusterId": "identityCluster", "ClusterId": "Identity",
"Match": { "Match": {
"Path": "/api/identity/{**everything}" "Path": "/api/identity/{**everything}"
} }
}, },
"Administration Service": { "FeatureManagement": {
"ClusterId": "administrationCluster", "ClusterId": "Administration",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"feature-management-route": {
"ClusterId": "featureManagementCluster",
"Match": { "Match": {
"Path": "/api/feature-management/{**everything}" "Path": "/api/feature-management/{**everything}"
} }
}, },
"permission-management-route": { "PermissionManagement": {
"ClusterId": "permissionManagementCluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/permission-management/{**everything}" "Path": "/api/permission-management/{**everything}"
} }
}, },
"setting-management-route": { "SettingManagement": {
"ClusterId": "settingManagementCluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/setting-management/{**everything}" "Path": "/api/setting-management/{**everything}"
} }
},
"Catalog Service": {
"ClusterId": "Catalog",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "Ordering",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Cmskit Service": {
"ClusterId": "CmsKit",
"Match": {
"Path": "/api/cmskit/{**everything}"
}
} }
}, },
"Clusters": { "Clusters": {
"accountCluster": { "Account": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://app-authserver" "Address": "http://app-authserver"
} }
} }
}, },
"identityCluster": { "Identity": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://identity-service" "Address": "http://identity-service"
} }
} }
}, },
"administrationCluster": { "Administration": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://administration-service" "Address": "http://administration-service"
} }
} }
}, },
"featureManagementCluster": { "Catalog": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://administration-service" "Address": "http://catalog-service"
} }
} }
}, },
"permissionManagementCluster": { "Ordering": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://administration-service" "Address": "http://ordering-service"
} }
} }
}, },
"settingManagementCluster": { "CmsKit": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "http://administration-service" "Address": "http://cmskit-service"
} }
} }
} },
} }
} }
} }

65
gateways/web/src/EShopOnAbp.WebGateway/yarp.json

@ -1,6 +1,12 @@
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"AbpApi": {
"ClusterId": "Administration",
"Match": {
"Path": "/api/abp/{**catch-all}"
}
},
"Account Service": { "Account Service": {
"ClusterId": "accountCluster", "ClusterId": "accountCluster",
"Match": { "Match": {
@ -8,112 +14,85 @@
} }
}, },
"Identity Service": { "Identity Service": {
"ClusterId": "identityCluster", "ClusterId": "Identity",
"Match": { "Match": {
"Path": "/api/identity/{**everything}" "Path": "/api/identity/{**everything}"
} }
}, },
"Administration Service": { "FeatureManagement": {
"ClusterId": "administrationCluster", "ClusterId": "Administration",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"feature-management-route": {
"ClusterId": "feature-management-cluster",
"Match": { "Match": {
"Path": "/api/feature-management/{**everything}" "Path": "/api/feature-management/{**everything}"
} }
}, },
"permission-management-route": { "PermissionManagement": {
"ClusterId": "permission-management-cluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/permission-management/{**everything}" "Path": "/api/permission-management/{**everything}"
} }
}, },
"setting-management-route": { "SettingManagement": {
"ClusterId": "setting-management-cluster", "ClusterId": "Administration",
"Match": { "Match": {
"Path": "/api/setting-management/{**everything}" "Path": "/api/setting-management/{**everything}"
} }
}, },
"Catalog Service": { "Catalog Service": {
"ClusterId": "catalogCluster", "ClusterId": "Catalog",
"Match": { "Match": {
"Path": "/api/catalog/{**everything}" "Path": "/api/catalog/{**everything}"
} }
}, },
"Ordering Service": { "Ordering Service": {
"ClusterId": "orderingCluster", "ClusterId": "Ordering",
"Match": { "Match": {
"Path": "/api/ordering/{**everything}" "Path": "/api/ordering/{**everything}"
} }
}, },
"Cmskit Service": { "Cmskit Service": {
"ClusterId": "cmskitCluster", "ClusterId": "CmsKit",
"Match": { "Match": {
"Path": "/api/cmskit/{**everything}" "Path": "/api/cmskit/{**everything}"
} }
} }
}, },
"Clusters": { "Clusters": {
"accountCluster": { "Account": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44330" "Address": "https://localhost:44330"
} }
} }
}, },
"identityCluster": { "Identity": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44351" "Address": "https://localhost:44351"
} }
} }
}, },
"administrationCluster": { "Administration": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44353"
}
}
},
"feature-management-cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44353"
}
}
},
"permission-management-cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44353"
}
}
},
"setting-management-cluster": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44353" "Address": "https://localhost:44353"
} }
} }
}, },
"catalogCluster": { "Catalog": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44354" "Address": "https://localhost:44354"
} }
} }
}, },
"orderingCluster": { "Ordering": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44356" "Address": "https://localhost:44356"
} }
} }
}, },
"cmskitCluster": { "CmsKit": {
"Destinations": { "Destinations": {
"destination1": { "destination1": {
"Address": "https://localhost:44358" "Address": "https://localhost:44358"

Loading…
Cancel
Save