@@ -36,6 +36,7 @@ pub struct ProxyPassToModel {
3636 pub remote_host : MyReverseProxyRemoteEndpoint ,
3737 pub request_timeout : Duration ,
3838 pub connect_timeout : Duration ,
39+ pub is_mcp : bool ,
3940}
4041
4142#[ derive( Debug ) ]
@@ -55,19 +56,20 @@ impl ProxyPassToConfig {
5556 ProxyPassToConfig :: UnixHttp1 ( proxy_pass) => proxy_pass. remote_host . to_string ( ) ,
5657 ProxyPassToConfig :: UnixHttp2 ( proxy_pass) => proxy_pass. remote_host . to_string ( ) ,
5758 ProxyPassToConfig :: Http2 ( proxy_pass) => proxy_pass. remote_host . to_string ( ) ,
59+
5860 ProxyPassToConfig :: FilesPath ( model) => model. to_string ( ) ,
5961 ProxyPassToConfig :: Static ( model) => model. to_string ( ) ,
6062 }
6163 }
6264
6365 pub fn get_type_as_str ( & self ) -> & ' static str {
6466 match self {
65- ProxyPassToConfig :: UnixHttp1 ( _) => "unix+http1" ,
66- ProxyPassToConfig :: UnixHttp2 ( _) => "unix+http2" ,
67- ProxyPassToConfig :: Http1 ( _) => "http1" ,
68- ProxyPassToConfig :: Http2 ( _) => "http2" ,
69- ProxyPassToConfig :: FilesPath ( _) => "files_path" ,
70- ProxyPassToConfig :: Static ( _) => "static" ,
67+ Self :: UnixHttp1 ( _) => "unix+http1" ,
68+ Self :: UnixHttp2 ( _) => "unix+http2" ,
69+ Self :: Http1 ( _) => "http1" ,
70+ Self :: Http2 ( _) => "http2" ,
71+ Self :: FilesPath ( _) => "files_path" ,
72+ Self :: Static ( _) => crate :: consts :: location_type :: STATIC ,
7173 }
7274 }
7375}
0 commit comments