mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
set base admin path for self host
This commit is contained in:
@ -69,6 +69,15 @@ namespace Bit.Admin
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
if(globalSettings.SelfHosted)
|
||||
{
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
context.Request.PathBase = "/admin";
|
||||
await next.Invoke();
|
||||
});
|
||||
}
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseStaticFiles();
|
||||
app.UseMvcWithDefaultRoute();
|
||||
|
Reference in New Issue
Block a user