From b95ce44fb9b15f1a87ca965f22b4ecd6d7478c4e Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 8 Mar 2026 17:39:25 +0100 Subject: [PATCH] Bind dashboard to 0.0.0.0 for container accessibility Dioxus defaults to 127.0.0.1 which is unreachable from outside the container. Hardcode 0.0.0.0 binding so reverse proxies can reach it. Co-Authored-By: Claude Opus 4.6 --- compliance-dashboard/src/infrastructure/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compliance-dashboard/src/infrastructure/server.rs b/compliance-dashboard/src/infrastructure/server.rs index a48e978..f28fc05 100644 --- a/compliance-dashboard/src/infrastructure/server.rs +++ b/compliance-dashboard/src/infrastructure/server.rs @@ -45,7 +45,8 @@ pub fn server_start(app: fn() -> Element) -> Result<(), DashboardError> { .with_expiry(tower_sessions::Expiry::OnInactivity(Duration::hours(24))) .with_signed(key); - let addr = dioxus_cli_config::fullstack_address_or_localhost(); + let port = dioxus_cli_config::server_port().unwrap_or(8080); + let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port)); let listener = tokio::net::TcpListener::bind(addr) .await .map_err(|e| DashboardError::Other(format!("Failed to bind: {e}")))?;