From 1c82e205572bbf1927f1a19a1b247b8aa7bdf58c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 27 Nov 2020 08:45:15 +0200 Subject: feat! make obnam-server always use TLS This will ruin my benchmark results, but it's the right thing to do. --- src/bin/obnam-server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bin') diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index cf53d2f..682b5a7 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -66,9 +66,9 @@ async fn main() -> anyhow::Result<()> { debug!("starting warp"); warp::serve(webroot) - // .tls() - // .key_path(config_bare.tls_key) - // .cert_path(config_bare.tls_cert) + .tls() + .key_path(config.tls_key) + .cert_path(config.tls_cert) .run(([127, 0, 0, 1], config.port)) .await; Ok(()) -- cgit v1.2.1