From 718afeb4b65c18ff47d9900ca4f351f450c59a55 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 8 Dec 2025 12:06:56 -0300 Subject: [PATCH] Fix: Use HTTP instead of HTTPS for local development BOTSERVER_URL --- src/main.rs | 6 ++++- ui/minimal/index.html | 52 +++++++++++++++++++++---------------------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/src/main.rs b/src/main.rs index 94808cb..438b66a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,11 @@ async fn main() -> std::io::Result<()> { let app = ui_server::configure_router(); - let addr = std::net::SocketAddr::from(([0, 0, 0, 0], 3000)); + let port: u16 = std::env::var("BOTUI_PORT") + .ok() + .and_then(|p| p.parse().ok()) + .unwrap_or(3001); + let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port)); let listener = tokio::net::TcpListener::bind(addr).await?; info!("UI server listening on {}", addr); diff --git a/ui/minimal/index.html b/ui/minimal/index.html index 2d62be6..fca0a10 100644 --- a/ui/minimal/index.html +++ b/ui/minimal/index.html @@ -5,6 +5,14 @@ General Bots