File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub struct Config {
8
8
pub proxy_tiers_poll_interval : Duration ,
9
9
pub prometheus_addr : String ,
10
10
pub ogmios_port : u16 ,
11
+ pub ogmios_dns : String ,
11
12
pub ssl_crt_path : PathBuf ,
12
13
pub ssl_key_path : PathBuf ,
13
14
}
@@ -39,6 +40,7 @@ impl Config {
39
40
. expect ( "OGMIOS_PORT must be set" )
40
41
. parse ( )
41
42
. expect ( "OGMIOS_PORT must a number" ) ,
43
+ ogmios_dns : env:: var ( "OGMIOS_DNS" ) . expect ( "OGMIOS_DNS must be set" ) ,
42
44
}
43
45
}
44
46
}
Original file line number Diff line number Diff line change @@ -281,7 +281,11 @@ impl ProxyRequest {
281
281
let network = captures. get ( 2 ) ?. as_str ( ) . to_string ( ) ;
282
282
let version = captures. get ( 3 ) ?. as_str ( ) . to_string ( ) ;
283
283
284
- let instance = format ! ( "ogmios-{network}-{version}:{}" , state. config. ogmios_port) ;
284
+ let instance = format ! (
285
+ "ogmios-{network}-{version}.{}:{}" ,
286
+ state. config. ogmios_dns, state. config. ogmios_port
287
+ ) ;
288
+
285
289
let namespace = state. config . proxy_namespace . clone ( ) ;
286
290
287
291
let protocol = get_header ( hyper_req, UPGRADE . as_str ( ) )
You can’t perform that action at this time.
0 commit comments