1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

proxypass to /admin

This commit is contained in:
Kyle Spearrin 2018-03-24 08:39:55 -04:00
parent af1aaba7ed
commit c4bd015e89
2 changed files with 6 additions and 6 deletions

View File

@ -64,16 +64,16 @@ namespace Bit.Admin
{
loggerFactory.AddSerilog(app, env, appLifetime, globalSettings, (e) => e.Level >= LogEventLevel.Error);
if(env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
if(globalSettings.SelfHosted)
{
app.UsePathBase("/admin");
}
if(env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseAuthentication();
app.UseStaticFiles();
app.UseMvcWithDefaultRoute();

View File

@ -195,7 +195,7 @@ server {{
}}
location /admin/ {{
proxy_pass http://admin:5000/;
proxy_pass http://admin:5000/admin/;
}}
}}");
}