PluginCore
PluginCore copied to clipboard
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
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 δΈθΏθ‘οΌθ¦ε

services.AddSession();
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "DataProtection"));