remake architecture to handle multiple tls endpoints
This commit is contained in:
parent
634d556ea9
commit
99e6bce992
11 changed files with 490 additions and 556 deletions
|
|
@ -1,6 +1,8 @@
|
|||
pub const LISTEN_ADDRESSES: &[&str] = &["127.0.0.1:8443", "[::1]:8443"];
|
||||
pub const LISTEN_ADDRESSES: &[&str] = &["0.0.0.0", "[::]"];
|
||||
pub const HTTP_LISTEN_PORT: u32 = 8080;
|
||||
pub const HTTPS_LISTEN_PORT: u32 = 8443;
|
||||
pub const TIMEOUT_SEC: u64 = 10;
|
||||
pub const MAX_CLIENTS: usize = 512;
|
||||
pub const MAX_CONCURRENT_STREAMS: u32 = 16;
|
||||
#[cfg(feature = "tls")]
|
||||
// #[cfg(feature = "tls")]
|
||||
pub const CERTS_WATCH_DELAY_SECS: u32 = 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue