@@ -13,8 +13,8 @@ use certbot::{CertBot, WorkDir};
1313use cmd_lib:: run_cmd as cmd;
1414use dstack_gateway_rpc:: {
1515 gateway_server:: { GatewayRpc , GatewayServer } ,
16- AcmeInfoResponse , GatewayState , GuestAgentConfig , QuotedPublicKey , RegisterCvmRequest ,
17- RegisterCvmResponse , WireGuardConfig , WireGuardPeer ,
16+ AcmeInfoResponse , GatewayState , GuestAgentConfig , InfoResponse , QuotedPublicKey ,
17+ RegisterCvmRequest , RegisterCvmResponse , WireGuardConfig , WireGuardPeer ,
1818} ;
1919use dstack_guest_agent_rpc:: { dstack_guest_client:: DstackGuestClient , RawQuoteArgs } ;
2020use fs_err as fs;
@@ -765,6 +765,14 @@ impl GatewayRpc for RpcHandler {
765765 . context ( "failed to update state" ) ?;
766766 Ok ( ( ) )
767767 }
768+
769+ async fn info ( self ) -> Result < InfoResponse > {
770+ let state = self . state . lock ( ) ;
771+ Ok ( InfoResponse {
772+ base_domain : state. config . proxy . base_domain . clone ( ) ,
773+ external_port : state. config . proxy . external_port as u32 ,
774+ } )
775+ }
768776}
769777
770778async fn get_or_generate_quote (
0 commit comments