From 3123c0d478ec9df96409b15fc8191ce665332fb6 Mon Sep 17 00:00:00 2001 From: VG Date: Sat, 9 Sep 2023 18:23:18 +0800 Subject: [PATCH] chore: configure non reserved ports for (#2002) --- dozer-cli/src/live/state.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dozer-cli/src/live/state.rs b/dozer-cli/src/live/state.rs index d8f9613f4d..2bf77f3aec 100644 --- a/dozer-cli/src/live/state.rs +++ b/dozer-cli/src/live/state.rs @@ -13,7 +13,7 @@ use dozer_types::{ }, log::info, models::{ - api_config::{ApiConfig, AppGrpcOptions}, + api_config::{ApiConfig, AppGrpcOptions, GrpcApiOptions, RestApiOptions}, api_endpoint::ApiEndpoint, app_config::AppConfig, flags::Flags, @@ -394,10 +394,22 @@ fn get_dozer_run_instance( dozer.config.api = Some(ApiConfig { app_grpc: Some(AppGrpcOptions { - port: 5678, + port: 62997, host: "0.0.0.0".to_string(), }), - + grpc: Some(GrpcApiOptions { + port: 62998, + host: "0.0.0.0".to_string(), + cors: true, + web: true, + enabled: true, + }), + rest: Some(RestApiOptions { + port: 62996, + host: "0.0.0.0".to_string(), + cors: true, + enabled: true, + }), ..Default::default() });