diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Development.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Development.json index 8983e0fc..39410514 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Development.json +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Development.json @@ -5,5 +5,21 @@ "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } + }, + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://localhost:5000", + "Protocols": "Http1AndHttp2" + }, + "Https": { + "Url": "https://localhost:44354", + "Protocols": "Http1AndHttp2" + }, + "gRPC": { + "Url": "http://localhost:81", + "Protocols": "Http2" + } + } } } diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json index 0787bce9..6e3ee56f 100644 --- a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json @@ -1,4 +1,4 @@ -{ +{ "ReverseProxy": { "Routes": { "Account Service": { diff --git a/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Staging.json b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Staging.json new file mode 100644 index 00000000..c4e04d13 --- /dev/null +++ b/gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Staging.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://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" + } + } + }, + "productPictureCluster": { + "Destinations": { + "destination1": { + "Address": "http://eshop-st-catalog" + } + } + } + } + } +} diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Development.json b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Development.json index 2c63c085..67b24d2b 100644 --- a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Development.json +++ b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Development.json @@ -1,2 +1,18 @@ { + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://localhost:5000", + "Protocols": "Http1AndHttp2" + }, + "Https": { + "Url": "https://localhost:44354", + "Protocols": "Http1AndHttp2" + }, + "gRPC": { + "Url": "http://localhost:81", + "Protocols": "Http2" + } + } + } } diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json index 7ec5db5e..56ef68b6 100644 --- a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json +++ b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.Docker.json @@ -30,15 +30,15 @@ "Kestrel": { "Endpoints": { "Http": { - "Url": "http://localhost:5000", + "Url": "http://docker.host.internal:80", "Protocols": "Http1AndHttp2" }, "Https": { - "Url": "https://localhost:44354", + "Url": "https://docker.host.internal:443", "Protocols": "Http1AndHttp2" }, "gRPC": { - "Url": "http://localhost:81", + "Url": "http://docker.host.internal:81", "Protocols": "Http2" } } diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.json b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.json index 13824033..645ce941 100644 --- a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.json +++ b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.json @@ -40,21 +40,5 @@ }, "ElasticSearch": { "Url": "http://localhost:9200" - }, - "Kestrel": { - "Endpoints": { - "Http": { - "Url": "http://localhost:5000", - "Protocols": "Http1AndHttp2" - }, - "Https": { - "Url": "https://localhost:44354", - "Protocols": "Http1AndHttp2" - }, - "gRPC": { - "Url": "http://localhost:81", - "Protocols": "Http2" - } - } } -} +} \ No newline at end of file diff --git a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.secrets.json b/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.secrets.json deleted file mode 100644 index 7a73a41b..00000000 --- a/services/catalog/src/EShopOnAbp.CatalogService.HttpApi.Host/appsettings.secrets.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} \ No newline at end of file