We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ab916 commit fe8bf6aCopy full SHA for fe8bf6a
1 file changed
src/UndefinedLabs/Program.cs
@@ -189,8 +189,9 @@
189
190
return clientBuilder.Build();
191
});
192
+var keysDirectory = Directory.Exists("/app") ? "/app/keys" : Path.Combine(Path.GetTempPath(), "undefinedlabs-keys");
193
builder.Services.AddDataProtection()
- .PersistKeysToFileSystem(new DirectoryInfo("/app/keys"));
194
+ .PersistKeysToFileSystem(new DirectoryInfo(keysDirectory));
195
builder.Services.AddDistributedMemoryCache();
196
builder.Services.AddSession(options =>
197
{
0 commit comments