mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2026-05-16 04:48:12 +02:00
17 lines
385 B
C#
17 lines
385 B
C#
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
|
|
//builder.Services.AddDataProtection()
|
|
// .PersistKeysToFileSystem(new DirectoryInfo(@"/keys"))
|
|
// .SetApplicationName("YourAppName");
|
|
|
|
// Add YARP services
|
|
builder.Services.AddReverseProxy()
|
|
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"));
|
|
|
|
var app = builder.Build();
|
|
|
|
app.MapReverseProxy();
|
|
|
|
app.Run();
|