-
Notifications
You must be signed in to change notification settings - Fork 4
/
Program.cs
29 lines (27 loc) · 1.01 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Threading.Tasks;
using ExpressBase.Common;
using ExpressBase.Common.Constants;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace ExpressBase.AuthServer
{
public class Program
{
public static void Main(string[] args)
{
string env = Environment.GetEnvironmentVariable(EnvironmentConstants.ASPNETCORE_ENVIRONMENT);
//if (env == CoreConstants.PRODUCTION)
// Task.Run(() => EbWebsocket.InitialiseWssConnection());
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>().UseKestrel(options =>
{
options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(7);
options.Limits.RequestHeadersTimeout = TimeSpan.FromMinutes(5);
})
.UseUrls(urls: "http://*:41000/");
}
}