yiyungent / PluginCore

🔌 ASP.NET Core lightweight plugin framework | ASP.NET Core 轻量级 插件框架 - 一分钟集成 | Vue.js frontend | JavaScript SDK
https://yiyungent.github.io/PluginCore/
GNU Lesser General Public License v3.0
457 stars 87 forks source link

warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60] #8

Open yiyungent opened 3 years ago

yiyungent commented 3 years ago
 warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {3b749522-27b1-4284-ba06-c5a8b7e77016} may be persisted to storage in unencrypted form.

Docker 下运行,警告

image

yiyungent commented 3 years ago

参考

yiyungent commented 3 years ago
services.AddSession(); 
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "DataProtection"));