mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
https-tls: typo - correct URIs to use https (#606)
This commit is contained in:
parent
7dfe3074a0
commit
4c63b61245
@ -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)))
|
||||
|
@ -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();
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user