1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

configure send for self-host

This commit is contained in:
Kyle Spearrin
2020-11-03 14:29:07 -05:00
parent 82dd364e65
commit d2ab098ca5
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Hosting;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
@ -27,6 +28,10 @@ namespace Bit.Server
{
builder.UseContentRoot(contentRoot);
}
else
{
builder.UseContentRoot(Directory.GetCurrentDirectory());
}
var webRoot = config.GetValue<string>("webRoot");
if (string.IsNullOrWhiteSpace(webRoot))