fix: change tls -> https since the redirection is http-specific feature on app layer
This commit is contained in:
parent
0efb142b0b
commit
6f7119c933
5 changed files with 27 additions and 6 deletions
|
|
@ -30,8 +30,12 @@ pub struct ProxyConfig {
|
|||
pub listen_sockets: Vec<SocketAddr>,
|
||||
/// http port
|
||||
pub http_port: Option<u16>,
|
||||
/// https port
|
||||
/// https port listening for TLS by default
|
||||
pub https_port: Option<u16>,
|
||||
/// https redirection port that notifies the client the port to connect to.
|
||||
/// Tis is used when the reverse proxy is behind a middlebox mapping the https port A to the reverse proxy's https port B.
|
||||
/// Typically, it is the container environment. (e.g. the host exposes 443 and the container exposes 8443 for https, then the redirection port is 443)
|
||||
pub https_redirection_port: Option<u16>,
|
||||
/// tcp listen backlog
|
||||
pub tcp_listen_backlog: u32,
|
||||
|
||||
|
|
@ -85,6 +89,7 @@ impl Default for ProxyConfig {
|
|||
listen_sockets: Vec::new(),
|
||||
http_port: None,
|
||||
https_port: None,
|
||||
https_redirection_port: None,
|
||||
tcp_listen_backlog: TCP_LISTEN_BACKLOG,
|
||||
|
||||
// TODO: Reconsider each timeout values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue