1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 09:02:48 -05:00

convert more services to local resources

This commit is contained in:
Kyle Spearrin
2017-08-08 23:06:28 -04:00
parent e081213615
commit 7590ea37f9
9 changed files with 21 additions and 9 deletions

View File

@ -222,10 +222,10 @@ namespace Bit.Core.Utilities
return;
}
if(globalSettings.SelfHosted)
if(globalSettings.SelfHosted && CoreHelpers.SettingHasValue(globalSettings.DataProtection.Directory))
{
var dir = new DirectoryInfo("/etc/bitwarden/core/aspnet-dataprotection");
services.AddDataProtection().PersistKeysToFileSystem(dir);
services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo(globalSettings.DataProtection.Directory));
}
#if NET461