-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add TLS support on backends Signed-off-by: andrewmatilde <[email protected]> * support TLS Signed-off-by: andrewmatilde <[email protected]> * fix connect Signed-off-by: andrewmatilde <[email protected]> * fix tls config Signed-off-by: andrewmatilde <[email protected]> * fix client Signed-off-by: andrewmatilde <[email protected]> * fix client scheme Signed-off-by: andrewmatilde <[email protected]> * fix client authority Signed-off-by: andrewmatilde <[email protected]> * fix connector Signed-off-by: andrewmatilde <[email protected]> * delete some unnecessary code Signed-off-by: andrewmatilde <[email protected]> * fix-lock Signed-off-by: andrewmatilde <[email protected]> * try fix loop select Signed-off-by: andrewmatilde <[email protected]> * fmt Signed-off-by: andrewmatilde <[email protected]> * use span Signed-off-by: andrewmatilde <[email protected]> * fix BUG Signed-off-by: andrewmatilde <[email protected]> * fix duplicate code. Signed-off-by: andrewmatilde <[email protected]> * fix all Signed-off-by: andrewmatilde <[email protected]>
- Loading branch information
1 parent
adb39a1
commit a7c97cd
Showing
15 changed files
with
823 additions
and
336 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
use rustls::{ClientConfig, ServerConfig}; | ||
|
||
use crate::handler::http::rule::Rule; | ||
|
||
#[derive(Debug, Clone)] | ||
#[derive(Clone)] | ||
pub struct Config { | ||
pub http_config: HTTPConfig, | ||
pub tls_config: Option<TLSConfig>, | ||
} | ||
|
||
#[derive(Clone, Debug)] | ||
pub struct HTTPConfig { | ||
pub proxy_port: u16, | ||
pub rules: Vec<Rule>, | ||
} | ||
|
||
#[derive(Clone)] | ||
pub struct TLSConfig { | ||
pub tls_client_config: ClientConfig, | ||
pub tls_server_config: ServerConfig, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.