mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
convert more services to local resources
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user