Closed dadyarri closed 1 year ago
I'm running application in linux docker container with this Lettuce's config on .net 7:
builder.Services .AddLettuceEncrypt() .PersistDataToDirectory( new DirectoryInfo(builder.Configuration["Certificates:Path"]!), builder.Configuration["Certificates:Password"] ); builder.WebHost.UseKestrel(k => { var appServices = k.ApplicationServices; k.Listen( IPAddress.Any, 443, o => o.UseHttps(h => { h.UseLettuceEncrypt(appServices); })); });
Account info are saved in specified location, whereas certificates doesn't:
Because of it i'm exceeding certificates generation limit on production server each time i'm restarting application
What should i do to avoid it and reuse already generated certificates?
What was the solution?
I forgot to add a volume
Without docker, it seems that there is no saving
I'm running application in linux docker container with this Lettuce's config on .net 7:
Account info are saved in specified location, whereas certificates doesn't:
Because of it i'm exceeding certificates generation limit on production server each time i'm restarting application
What should i do to avoid it and reuse already generated certificates?