@@ -32,6 +32,11 @@ pub struct AdapterConfig {
3232 /// Port on which the adapter's Health Service server will listen.
3333 pub grpc_port : u16 ,
3434
35+ /// GRPC Host
36+ ///
37+ /// Host on which the adapter's Health Service server will listen.
38+ pub grpc_host : String ,
39+
3540 /// Aquila URL
3641 ///
3742 /// URL of the Aquila server to connect to.
@@ -45,7 +50,7 @@ pub struct AdapterConfig {
4550 /// Is Monitored
4651 ///
4752 /// If true the Adapter will expose a grpc health service server.
48- pub is_monitored : bool ,
53+ pub with_health_service : bool ,
4954}
5055
5156impl AdapterConfig {
@@ -57,6 +62,8 @@ impl AdapterConfig {
5762 let nats_bucket =
5863 code0_flow:: flow_config:: env_with_default ( "NATS_BUCKET" , String :: from ( "flow_store" ) ) ;
5964 let grpc_port = code0_flow:: flow_config:: env_with_default ( "GRPC_PORT" , 50051 ) ;
65+ let grpc_host =
66+ code0_flow:: flow_config:: env_with_default ( "GRPC_HOST" , String :: from ( "localhost" ) ) ;
6067 let aquila_url = code0_flow:: flow_config:: env_with_default (
6168 "AQUILA_URL" ,
6269 String :: from ( "grpc://localhost:50051" ) ,
@@ -67,19 +74,21 @@ impl AdapterConfig {
6774 let mode = code0_flow:: flow_config:: env_with_default ( "MODE" , Mode :: STATIC ) ;
6875 let definition_path = code0_flow:: flow_config:: env_with_default (
6976 "DEFINITION_PATH" ,
70- String :: from ( "./definition.yaml " ) ,
77+ String :: from ( "./definition" ) ,
7178 ) ;
72- let is_monitored = code0_flow:: flow_config:: env_with_default ( "IS_MONITORED" , false ) ;
79+ let with_health_service =
80+ code0_flow:: flow_config:: env_with_default ( "WITH_HEALTH_SERVICE" , false ) ;
7381
7482 Self {
7583 environment,
7684 nats_bucket,
7785 mode,
7886 nats_url,
7987 grpc_port,
88+ grpc_host,
8089 aquila_url,
8190 definition_path,
82- is_monitored ,
91+ with_health_service ,
8392 }
8493 }
8594
0 commit comments