mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 10:47:51 +00:00
Basic re-auth framework in place
This commit is contained in:
@@ -9,23 +9,19 @@ using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace PodNoms.Api
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
namespace PodNoms.Api {
|
||||
public class Program {
|
||||
static bool isDevelopment =
|
||||
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == EnvironmentName.Development;
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
public static void Main(string[] args) {
|
||||
CreateWebHostBuilder(args).Build().Run();
|
||||
}
|
||||
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
||||
WebHost.CreateDefaultBuilder(args)
|
||||
.UseStartup<Startup>()
|
||||
.UseUrls("http://0.0.0.0:5000")
|
||||
.UseKestrel(options =>
|
||||
{
|
||||
.UseKestrel(options => {
|
||||
options.Limits.MaxRequestBodySize = 1073741824; //1Gb
|
||||
// if (isDevelopment)
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user