From 407725989061b8ebbb03d4c5d0aa4b8ecbc02ba5 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:58:22 +0100 Subject: [PATCH] adjust HTTP remove config for HTTP this is controlled in docker land as we no longer make windows/linux targeted builds. --- SecondBotEvents/Services/HttpService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecondBotEvents/Services/HttpService.cs b/SecondBotEvents/Services/HttpService.cs index 71cc7af..02ba7e2 100644 --- a/SecondBotEvents/Services/HttpService.cs +++ b/SecondBotEvents/Services/HttpService.cs @@ -124,14 +124,14 @@ namespace SecondBotEvents.Services { Swan.Logging.Logger.UnregisterLogger(); HTTPendpoint = new WebServer(o => o - .WithUrlPrefix("http://*:" + myConfig.GetPort().ToString()) + .WithUrlPrefix("http://*:80") .WithMode(HttpListenerMode.EmbedIO)) .WithCors() .WithWebApi("/api", SerializationCallback, m => m.WithController(() => new HttpWebBot(master))) .WithModule(new ActionModule("/", HttpVerbs.Any, ctx => ctx.SendDataAsync(new { Message = "Error" })) ); HTTPendpoint.RunAsync(); - LogFormater.Info("HTTP service [Enabled] on port "+ myConfig.GetPort().ToString()); + LogFormater.Info("HTTP service [Enabled] on port 80"); } public static async Task SerializationCallback(IHttpContext context, object? data) {