Skip to content

Commit 7450d85

Browse files
committed
docs: Document TlsServer::new
1 parent caddffb commit 7450d85

File tree

1 file changed

+5
-0
lines changed
  • crates/stackable-webhook/src/tls

1 file changed

+5
-0
lines changed

crates/stackable-webhook/src/tls/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ pub struct TlsServer {
6666
}
6767

6868
impl TlsServer {
69+
/// Create a new [`TlsServer`].
70+
///
71+
/// This create a [`CertificateResolver`] with the provided `subject_alterative_dns_names`,
72+
/// which takes care of the certificate rotation. Afterwards it create the [`ServerConfig`],
73+
/// which let's the [`CertificateResolver`] provide the needed certificates.
6974
#[instrument(name = "create_tls_server", skip(router))]
7075
pub async fn new(
7176
socket_addr: SocketAddr,

0 commit comments

Comments
 (0)