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:
parent
6e7d618e52
commit
9be30793b9
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user