1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

add ssl guide ref

This commit is contained in:
Nikolay Kim
2017-12-13 21:56:30 -08:00
parent 406ef20262
commit 408ddf0be1
4 changed files with 39 additions and 5 deletions

View File

@ -42,7 +42,7 @@ fn main() {
.header("LOCATION", "/index.html")
.body(Body::Empty)
})))
.serve_tls::<_, ()>("127.0.0.1:8443", &pkcs12).unwrap();
.serve_ssl::<_, ()>("127.0.0.1:8443", &pkcs12).unwrap();
println!("Started http server: 127.0.0.1:8443");
let _ = sys.run();