From 84515d656ef909b00e7e9250e08a86ed253dc40e Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 19 Mar 2024 07:48:21 +0100 Subject: [PATCH] https in string --- src/HeartTrackAPI/Properties/launchSettings.json | 2 +- src/HeartTrackAPI/Utils/AppBootstrap.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HeartTrackAPI/Properties/launchSettings.json b/src/HeartTrackAPI/Properties/launchSettings.json index ab36185..7156f3d 100644 --- a/src/HeartTrackAPI/Properties/launchSettings.json +++ b/src/HeartTrackAPI/Properties/launchSettings.json @@ -24,7 +24,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7233;http://localhost:5030,https://codefirst.iut.uca.fr/containers/HeartDev-api:8080, https://codefirst.iut.uca.fr:8080", + "applicationUrl": "https://localhost:7233;http://localhost:5030", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/src/HeartTrackAPI/Utils/AppBootstrap.cs b/src/HeartTrackAPI/Utils/AppBootstrap.cs index ffc84b9..1041212 100644 --- a/src/HeartTrackAPI/Utils/AppBootstrap.cs +++ b/src/HeartTrackAPI/Utils/AppBootstrap.cs @@ -191,7 +191,7 @@ public class AppBootstrap(IConfiguration configuration) if (httpReq.Headers.ContainsKey("X-Forwarded-Host")) { var basePath = "containers/HeartDev-api"; - var serverUrl = $"{httpReq.Scheme}://{httpReq.Headers["X-Forwarded-Host"]}/3{basePath}"; + var serverUrl = $"https://{httpReq.Headers["X-Forwarded-Host"]}/{basePath}"; swagger.Servers = new List { new() { Url = serverUrl } }; } });