1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

https-tls: typo - correct URIs to use https (#606)

This commit is contained in:
Alex Collins 2023-02-25 12:38:19 +00:00 committed by GitHub
parent 7dfe3074a0
commit 4c63b61245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -173,7 +173,7 @@ async fn main() -> anyhow::Result<()> {
// Storing pkey_der, cert_der and intermediate_cert somewhere
// (in order to avoid unnecessarily regeneration of TLS/SSL) is recommended
log::info!("starting HTTP server at http://localhost:443");
log::info!("starting HTTP server at https://localhost:443");
// Start HTTP server!
let srv = HttpServer::new(|| App::new().route("/", web::get().to(index)))

View File

@ -16,7 +16,7 @@ async fn main() -> io::Result<()> {
std::env::set_var("RUST_LOG", "actix_web=debug");
env_logger::init();
println!("Started http server: 127.0.0.1:8443");
println!("Started http server: https://127.0.0.1:8443");
// load TLS keys
let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap();

View File

@ -103,7 +103,7 @@ async fn main() -> std::io::Result<()> {
.collect();
let config = config.with_single_cert(cert_chain, keys.remove(0)).unwrap();
log::info!("starting HTTP server at http://localhost:8080 and http://localhost:8443");
log::info!("starting HTTP server at http://localhost:8080 and https://localhost:8443");
HttpServer::new(|| App::new().default_service(web::to(route_whoami)))
.on_connect(get_client_cert)

View File

@ -26,7 +26,7 @@ async fn main() -> std::io::Result<()> {
let config = load_rustls_config();
log::info!("starting HTTPS server at http://localhost:8443");
log::info!("starting HTTPS server at https://localhost:8443");
HttpServer::new(|| {
App::new()