From 062de66513d54008f2c5aecb9b538aa6fe491746 Mon Sep 17 00:00:00 2001 From: Tarun Jain Date: Thu, 12 May 2022 11:30:55 +0530 Subject: [PATCH] update appsettings and launchsettings --- .../Properties/launchSettings.json | 4 ++-- .../Yarp/WebShoppingAPIGateway/appsettings.json | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/ApiGateways/Yarp/WebShoppingAPIGateway/Properties/launchSettings.json b/src/ApiGateways/Yarp/WebShoppingAPIGateway/Properties/launchSettings.json index bee9b2b49..8f682293e 100644 --- a/src/ApiGateways/Yarp/WebShoppingAPIGateway/Properties/launchSettings.json +++ b/src/ApiGateways/Yarp/WebShoppingAPIGateway/Properties/launchSettings.json @@ -4,7 +4,7 @@ "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:26551", - "sslPort": 44339 + "sslPort": 0 } }, "profiles": { @@ -29,7 +29,7 @@ "launchBrowser": true, "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", "publishAllPorts": true, - "useSSL": true + "useSSL": false } } } \ No newline at end of file diff --git a/src/ApiGateways/Yarp/WebShoppingAPIGateway/appsettings.json b/src/ApiGateways/Yarp/WebShoppingAPIGateway/appsettings.json index 0cdab786e..c0cbfc4ce 100644 --- a/src/ApiGateways/Yarp/WebShoppingAPIGateway/appsettings.json +++ b/src/ApiGateways/Yarp/WebShoppingAPIGateway/appsettings.json @@ -1,5 +1,5 @@ { - "Urls": "http://host.docker.internal:5202", + "Urls": "http://{ServiceHost}:{ServicePort}", "Logging": { "LogLevel": { "Default": "Information", @@ -11,7 +11,6 @@ "Routes": { "minimumroute": { "ClusterId": "minimumcluster", - "CorsPolicy": "customPolicy", "Match": { "Path": "{**catch-all}" } @@ -21,7 +20,7 @@ "CorsPolicy": "customPolicy", "Match": { "Methods": [ "GET", "POST" ], - "Hosts": "0.0.0.0", + "Hosts": "host.docker.internal", "Path": "/c/{**catch-all}" }, "Transforms": [ @@ -50,8 +49,13 @@ "Match": { "Methods": [ "GET", "POST" ], "Hosts": "host.docker.internal", - "Path": "/hub/notificationhub/{**catch-all}" - } + "Path": "/hub/{**catch-all}" + }, + "Transforms": [ + { + "PathRemovePrefix": "/hub" + } + ] }, "basket": { "ClusterId": "basket",