https in string
continuous-integration/drone/push Build is passing Details

pull/10/head
David D'ALMEIDA 1 year ago
parent 04a1d7e107
commit 84515d656e

@ -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"
}

@ -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<OpenApiServer> { new() { Url = serverUrl } };
}
});

Loading…
Cancel
Save