1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

UsePathBase for identity server

This commit is contained in:
Kyle Spearrin 2020-08-28 13:46:38 -04:00
parent 6e7d618e52
commit 9be30793b9

View File

@ -144,6 +144,12 @@ namespace Bit.Identity
app.UseSerilog(env, appLifetime, globalSettings);
if (globalSettings.SelfHosted)
{
app.UsePathBase("/identity");
app.UseForwardedHeaders(globalSettings);
}
// Default Middleware
app.UseDefaultMiddleware(env, globalSettings);
@ -152,10 +158,6 @@ namespace Bit.Identity
// Rate limiting
app.UseMiddleware<CustomIpRateLimitMiddleware>();
}
else
{
app.UseForwardedHeaders(globalSettings);
}
if (env.IsDevelopment())
{