mirror of
https://github.com/fergalmoran/podnoms.git
synced 2026-01-07 09:05:58 +00:00
28 lines
947 B
C#
Executable File
28 lines
947 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace PodNoms.Api {
|
|
public class Program {
|
|
public static void Main (string[] args) {
|
|
CreateWebHostBuilder (args).Build ().Run ();
|
|
}
|
|
public static IWebHostBuilder CreateWebHostBuilder (string[] args) =>
|
|
WebHost.CreateDefaultBuilder (args)
|
|
.UseStartup<Startup> ()
|
|
.UseKestrel(options => {
|
|
options.Listen(IPAddress.Any, 5000);
|
|
options.Listen(IPAddress.Any, 5001, listenOptions => {
|
|
listenOptions.UseHttps("certs/dev.pfx", "secret");
|
|
});
|
|
});
|
|
}
|
|
}
|