diff --git a/CulinaryCommandApp/Program.cs b/CulinaryCommandApp/Program.cs index ae2eee7..1990c54 100644 --- a/CulinaryCommandApp/Program.cs +++ b/CulinaryCommandApp/Program.cs @@ -18,8 +18,7 @@ using Amazon.Extensions.NETCore.Setup; using CulinaryCommandApp.Services; using Microsoft.AspNetCore.HttpOverrides; - - +using Microsoft.AspNetCore.DataProtection; var builder = WebApplication.CreateBuilder(args); @@ -175,6 +174,9 @@ o.KnownProxies.Clear(); }); +builder.Services.AddDataProtection() + .PersistKeysToFileSystem(new DirectoryInfo("/var/www/culinarycommand/dpkeys")) + .SetApplicationName("CulinaryCommand"); //