diff --git a/Robust.Cdn/Program.cs b/Robust.Cdn/Program.cs index c31f20e..f94284b 100644 --- a/Robust.Cdn/Program.cs +++ b/Robust.Cdn/Program.cs @@ -66,6 +66,15 @@ var app = builder.Build(); +var pathBase = app.Configuration.GetValue("PathBase"); +if (!string.IsNullOrEmpty(pathBase)) +{ + app.Services.GetRequiredService>().LogInformation("Using PathBase: {PathBase}", pathBase); + app.UsePathBase(pathBase); +} + +app.UseRouting(); + // Make sure SQLite cleanly shuts down. app.Lifetime.ApplicationStopped.Register(SqliteConnection.ClearAllPools);