1
0
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:
Kyle Spearrin
2018-03-23 23:27:33 -04:00
parent 73a4af3f17
commit 997839a2c7
2 changed files with 11 additions and 1 deletions

View File

@ -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();