You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
498 B
24 lines
498 B
using System.Net;
|
|
using Ocelot.DependencyInjection;
|
|
using Ocelot.Middleware;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Configuration.AddJsonFile("ocelot.json", false, true);
|
|
builder.Services.AddOcelot(builder.Configuration);
|
|
|
|
|
|
var app = builder.Build();
|
|
|
|
|
|
app.UseRouting();
|
|
app.UseOcelot();
|
|
|
|
//Désactiver la validation du certificat SSL
|
|
//ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
|
|
|
|
|
|
|
|
//app.MapGet("/", () => "Hello World!");
|
|
|
|
app.Run(); |