mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
@ -1,5 +1,5 @@
|
||||
// <signals>
|
||||
use actix_web::{web, App, HttpResponse, HttpServer, rt::System};
|
||||
use actix_web::{rt::System, web, App, HttpResponse, HttpServer};
|
||||
use std::sync::mpsc;
|
||||
use std::thread;
|
||||
|
||||
|
@ -14,7 +14,8 @@ async fn main() -> std::io::Result<()> {
|
||||
// load ssl keys
|
||||
// to create a self-signed temporary cert for testing:
|
||||
// `openssl req -x509 -newkey rsa:4096 -nodes -keyout key.pem -out cert.pem -days 365 -subj '/CN=localhost'`
|
||||
let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
|
||||
let mut builder =
|
||||
SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();
|
||||
builder
|
||||
.set_private_key_file("key.pem", SslFiletype::PEM)
|
||||
.unwrap();
|
||||
|
Reference in New Issue
Block a user