- fix: docker libssl in slim image
- fix: api service default rest api address and port was incorrect - update: database service to use dedicated function for running the health check api
This commit is contained in:
@@ -62,8 +62,8 @@ pub async fn serve_rest_api(
|
||||
.with_state(grpc_client)
|
||||
.layer(cors);
|
||||
|
||||
let addr = env::var("LISTEN_ADDR").unwrap_or_else(|_| "127.0.0.1".to_string());
|
||||
let port = env::var("API_SERVICE_PORT").unwrap_or_else(|_| "50050".to_string());
|
||||
let addr = env::var("LISTEN_ADDR").unwrap_or_else(|_| "0.0.0.0".to_string());
|
||||
let port = env::var("API_SERVICE_PORT").unwrap_or_else(|_| "8080".to_string());
|
||||
let listener = tokio::net::TcpListener::bind(format!("{}:{}", addr, port))
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user