PluginCore icon indicating copy to clipboard operation
PluginCore copied to clipboard

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

Open yiyungent opened this issue 4 years ago β€’ 2 comments

 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 avatar Aug 23 '21 17:08 yiyungent

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

yiyungent avatar Aug 24 '21 16:08 yiyungent