diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json new file mode 100644 index 00000000..0787bce9 --- /dev/null +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json @@ -0,0 +1,100 @@ +{ + "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}" + } + }, + "product-picture-route": { + "ClusterId": "productPictureCluster", + "Match": { + "Path": "/product-images/{**everything}", + "Methods" : [ "GET" ] + } + } + }, + "Clusters": { + "accountCluster": { + "Destinations": { + "destination1": { + "Address": "http://app-authserver" + } + } + }, + "administrationCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + }, + "catalogCluster": { + "Destinations": { + "destination1": { + "Address": "http://catalog-service" + } + } + }, + "basketCluster": { + "Destinations": { + "destination1": { + "Address": "http://basket-service" + } + } + }, + "orderingCluster": { + "Destinations": { + "destination1": { + "Address": "http://ordering-service" + } + } + }, + "paymentCluster": { + "Destinations": { + "destination1": { + "Address": "http://payment-service" + } + } + }, + "productPictureCluster": { + "Destinations": { + "destination1": { + "Address": "http://catalog-service" + } + } + } + } + } +} diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json index 936faa9b..119795be 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json @@ -22,103 +22,5 @@ }, "ElasticSearch": { "Url": "http://localhost:9200" - }, - "ReverseProxy": { - "Routes": { - "Account Service": { - "ClusterId": "account_cluster", - "Match": { - "Path": "/api/account/{**everything}" - } - }, - "Administration Service": { - "ClusterId": "administration_cluster", - "Match": { - "Path": "/api/abp/{**everything}" - } - }, - "Catalog Service": { - "ClusterId": "catalog_cluster", - "Match": { - "Path": "/api/catalog/{**everything}" - } - }, - "Basket Service": { - "ClusterId": "basket_cluster", - "Match": { - "Path": "/api/basket/{**everything}" - } - }, - "Ordering Service": { - "ClusterId": "ordering_cluster", - "Match": { - "Path": "/api/ordering/{**everything}" - } - }, - "Payment Service": { - "ClusterId": "payment_cluster", - "Match": { - "Path": "/api/payment/{**everything}" - } - }, - "product-picture-route": { - "ClusterId": "product_picture_cluster", - "Match": { - "Path": "/product-images/{**everything}", - "Methods" : [ "GET" ] - } - } - }, - "Clusters": { - "account-cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44330" - } - } - }, - "administration_cluster": { - "Destinations": { - "destination1": { - "Address": "http://localhost:44353" - } - } - }, - "catalog_cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44354" - } - } - }, - "product_picture_cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44354" - } - } - }, - "basket_cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44355" - } - } - }, - "ordering_cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44356" - } - } - }, - "payment_cluster": { - "Destinations": { - "destination1": { - "Address": "https://localhost:44357" - } - } - } - } - } + } } diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json index 19682d92..2f586248 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json @@ -1,3 +1,100 @@ { - -} \ No newline at end of file + "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}" + } + }, + "product-picture-route": { + "ClusterId": "productPictureCluster", + "Match": { + "Path": "/product-images/{**everything}", + "Methods" : [ "GET" ] + } + } + }, + "Clusters": { + "accountCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44330" + } + } + }, + "administrationCluster": { + "Destinations": { + "destination1": { + "Address": "http://localhost:44353" + } + } + }, + "catalogCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44354" + } + } + }, + "basketCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44355" + } + } + }, + "orderingCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44356" + } + } + }, + "paymentCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44357" + } + } + }, + "productPictureCluster": { + "Destinations": { + "destination1": { + "Address": "https://localhost:44354" + } + } + } + } + } +} diff --git a/gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json b/gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json new file mode 100644 index 00000000..db306048 --- /dev/null +++ b/gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json @@ -0,0 +1,86 @@ +{ + "ReverseProxy": { + "Routes": { + "Account Service": { + "ClusterId": "accountCluster", + "Match": { + "Path": "/api/account/{**everything}" + } + }, + "Identity Service": { + "ClusterId": "identityCluster", + "Match": { + "Path": "/api/identity/{**everything}" + } + }, + "Administration Service": { + "ClusterId": "administrationCluster", + "Match": { + "Path": "/api/abp/{**everything}" + } + }, + "feature-management-route": { + "ClusterId": "featureManagementCluster", + "Match": { + "Path": "/api/feature-management/{**everything}" + } + }, + "permission-management-route": { + "ClusterId": "permissionManagementCluster", + "Match": { + "Path": "/api/permission-management/{**everything}" + } + }, + "setting-management-route": { + "ClusterId": "settingManagementCluster", + "Match": { + "Path": "/api/setting-management/{**everything}" + } + } + }, + "Clusters": { + "accountCluster": { + "Destinations": { + "destination1": { + "Address": "http://app-authserver" + } + } + }, + "identityCluster": { + "Destinations": { + "destination1": { + "Address": "http://identity-service" + } + } + }, + "administrationCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + }, + "featureManagementCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + }, + "permissionManagementCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + }, + "settingManagementCluster": { + "Destinations": { + "destination1": { + "Address": "http://administration-service" + } + } + } + } + } +}