File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
crates/stackable-webhook/src/tls Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ pub enum TlsServerError {
55
55
56
56
/// A server which terminates TLS connections and allows clients to communicate
57
57
/// via HTTPS with the underlying HTTP router.
58
+ ///
59
+ /// It also rotates the generated certificates as needed.
58
60
pub struct TlsServer {
59
61
config : ServerConfig ,
60
62
cert_resolver : Arc < CertificateResolver > ,
@@ -99,6 +101,8 @@ impl TlsServer {
99
101
/// bound socket address. It only accepts TLS connections. Internally each
100
102
/// TLS stream get handled by a Hyper service, which in turn is an Axum
101
103
/// router.
104
+ ///
105
+ /// It also starts a background task to rotate the certificate as needed.
102
106
pub async fn run ( self ) -> Result < ( ) > {
103
107
let certificate_rotation_loop =
104
108
tokio:: spawn ( async { Self :: run_certificate_rotation_loop ( self . cert_resolver ) . await } ) ;
You can’t perform that action at this time.
0 commit comments