mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-02-16 16:20:06 -05:00
25 lines
633 B
C#
25 lines
633 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Kyoo.Controllers;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Kyoo
|
|
{
|
|
public class Program
|
|
{
|
|
public static async Task Main(string[] args)
|
|
{
|
|
Console.WriteLine($"Running as: {Environment.UserName}");
|
|
await CreateWebHostBuilder(args).Build().RunAsync();
|
|
}
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.UseKestrel((config) => { config.AddServerHeader = false; })
|
|
.UseUrls("http://*:5000")
|
|
.UseStartup<Startup>();
|
|
}
|
|
}
|