mirror of
https://github.com/bitwarden/server.git
synced 2025-04-22 21:45:15 -05:00
proxypass to /admin
This commit is contained in:
parent
af1aaba7ed
commit
c4bd015e89
@ -64,16 +64,16 @@ namespace Bit.Admin
|
|||||||
{
|
{
|
||||||
loggerFactory.AddSerilog(app, env, appLifetime, globalSettings, (e) => e.Level >= LogEventLevel.Error);
|
loggerFactory.AddSerilog(app, env, appLifetime, globalSettings, (e) => e.Level >= LogEventLevel.Error);
|
||||||
|
|
||||||
if(env.IsDevelopment())
|
|
||||||
{
|
|
||||||
app.UseDeveloperExceptionPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(globalSettings.SelfHosted)
|
if(globalSettings.SelfHosted)
|
||||||
{
|
{
|
||||||
app.UsePathBase("/admin");
|
app.UsePathBase("/admin");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(env.IsDevelopment())
|
||||||
|
{
|
||||||
|
app.UseDeveloperExceptionPage();
|
||||||
|
}
|
||||||
|
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
app.UseMvcWithDefaultRoute();
|
app.UseMvcWithDefaultRoute();
|
||||||
|
@ -195,7 +195,7 @@ server {{
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
location /admin/ {{
|
location /admin/ {{
|
||||||
proxy_pass http://admin:5000/;
|
proxy_pass http://admin:5000/admin/;
|
||||||
}}
|
}}
|
||||||
}}");
|
}}");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user