[−][src]Function lets_encrypt_warp::lets_encrypt
pub fn lets_encrypt<F>(service: F, domain: &str) where
F: Filter<Error = Rejection> + Send + Sync + 'static,
F::Extract: Reply,
Run forever on the current thread, serving using TLS to serve on the given domain.
This function accepts a single warp::Filter
which is the site to host. lets_encrypt
requires the capability
to serve port 80 and port 443. It obtains TLS credentials from
letsencrypt.org
and then serves up the site on port 443. It
also serves redirects on port 80. Errors are reported on stderr.