2019-07-23 16:38:49 -04:00
|
|
|
|
using Bit.Core.Utilities;
|
2018-03-21 12:57:43 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Admin;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2018-03-21 12:57:43 -04:00
|
|
|
|
public class Program
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
|
{
|
2020-01-10 08:33:13 -05:00
|
|
|
|
Host
|
2018-03-21 12:57:43 -04:00
|
|
|
|
.CreateDefaultBuilder(args)
|
2021-04-09 09:48:43 -04:00
|
|
|
|
.ConfigureCustomAppConfiguration(args)
|
2020-01-10 08:33:13 -05:00
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
2022-08-29 16:06:55 -04:00
|
|
|
|
{
|
2019-09-04 12:54:19 -04:00
|
|
|
|
webBuilder.ConfigureKestrel(o =>
|
2022-08-29 14:53:16 -04:00
|
|
|
|
{
|
2019-09-04 12:54:19 -04:00
|
|
|
|
o.Limits.MaxRequestLineSize = 20_000;
|
2022-08-29 15:53:48 -04:00
|
|
|
|
});
|
2019-09-04 12:54:19 -04:00
|
|
|
|
webBuilder.UseStartup<Startup>();
|
2020-01-10 08:33:13 -05:00
|
|
|
|
})
|
2025-11-21 14:39:26 -05:00
|
|
|
|
.AddSerilogFileLogging()
|
2018-03-21 12:57:43 -04:00
|
|
|
|
.Build()
|
|
|
|
|
|
.Run();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|