fixed network config and wrong paths in frontend

This commit is contained in:
2025-12-29 22:12:39 +01:00
parent e85d05fe21
commit 06b3a6f405

View File

@@ -61,8 +61,8 @@ async fn main() -> anyhow::Result<()> {
// ) // )
.layer(cors); .layer(cors);
let port = var("CHATAPP_SERVER_PORT").unwrap_or_else(|_| "8080".to_string()); let port = var("CHATAPP_SERVER_PORT").unwrap_or_else(|_| "8081".to_string());
let addr = format!("127.0.0.1:{port}"); let addr = format!("0.0.0.0:{port}");
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap(); let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
tracing::info!("Listening on {addr}"); tracing::info!("Listening on {addr}");