@@ -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;
@@ -780,6 +780,14 @@ impl GatewayRpc for RpcHandler {
780780 . context ( "failed to update state" ) ?;
781781 Ok ( ( ) )
782782 }
783+
784+ async fn info ( self ) -> Result < InfoResponse > {
785+ let state = self . state . lock ( ) ;
786+ Ok ( InfoResponse {
787+ base_domain : state. config . proxy . base_domain . clone ( ) ,
788+ external_port : state. config . proxy . external_port as u32 ,
789+ } )
790+ }
783791}
784792
785793async fn get_or_generate_quote (
0 commit comments