|
|
@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using Serilog; |
|
|
|
using Win.Sfs.SettleAccount.influxdb; |
|
|
|
using Serilog.Settings.Configuration; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount; |
|
|
|
|
|
|
@ -27,7 +27,7 @@ public class Program |
|
|
|
//}
|
|
|
|
|
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
.ReadFrom.Configuration(configuration) |
|
|
|
.ReadFrom.Configuration(configuration, ConfigurationAssemblySource.AlwaysScanDllFiles) |
|
|
|
.WriteTo.Async(c => c.Console()) |
|
|
|
.CreateLogger(); |
|
|
|
|
|
|
@ -58,7 +58,7 @@ public class Program |
|
|
|
options.Limits.MaxRequestBodySize = long.MaxValue; |
|
|
|
options.Limits.MaxRequestBufferSize = long.MaxValue; |
|
|
|
options.Limits.MaxRequestLineSize = int.MaxValue; |
|
|
|
options.Limits.KeepAliveTimeout= TimeSpan.MaxValue; |
|
|
|
options.Limits.KeepAliveTimeout = TimeSpan.MaxValue; |
|
|
|
}); |
|
|
|
webBuilder.UseStartup<Startup>(); |
|
|
|
}) |
|
|
|