transport loading order status in brisanje

This commit is contained in:
David Štaleker
2023-06-26 08:12:25 +02:00
parent 25e98d63ec
commit 625b013b67
13 changed files with 2405 additions and 26 deletions

View File

@@ -16,11 +16,16 @@ namespace EveryThing
{
public class Program
{
public static IConfiguration AppSetting { get; set; }
public static void Main(string[] args)
{
//var logger = NLog.LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
//logger.Debug("INIT");
AppSetting = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build();
CreateHostBuilder(args).Build().Run();
}
@@ -32,7 +37,7 @@ namespace EveryThing
logging.ClearProviders();
logging.AddConsole();
}).UseNLog();
#if !DEBUG
webBuilder.UseKestrel(opts =>
{
@@ -41,12 +46,13 @@ namespace EveryThing
//opts.Listen(IPAddress.Parse("192.168.1.150"), 443, o => o.UseHttps(h => { h.UseLettuceEncrypt(appServices); }));
//opts.Listen(IPAddress.Parse("192.168.111.77"), 5005);
opts.Listen(IPAddress.Parse("192.168.178.205"), 5005);//novi server
opts.Listen(IPAddress.Loopback, port: 8081);
//opts.Listen(IPAddress.Parse("192.168.178.205"), 5005);//novi server
//opts.Listen(IPAddress.Loopback, port: 8081);
//opts.ListenLocalhost(4433, opts => opts.UseHttps());
opts.ListenLocalhost(5005);
//opts.ListenLocalhost(5005);
//opts.ListenLocalhost(5005, opts => opts.UseHttps());
});
webBuilder.UseUrls(AppSetting["Kst:Url"]);
#endif
webBuilder.UseContentRoot(Directory.GetCurrentDirectory());
webBuilder.UseStartup<Startup>();