Merge pull request #195 from junkurihara/fix/crypto-provider
fix: add CyrptoProvider::install_default in rpxy-lib::entrypoint
This commit is contained in:
commit
1cc9b10fee
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ use crate::{
|
||||||
use futures::future::join_all;
|
use futures::future::join_all;
|
||||||
use hot_reload::ReloaderReceiver;
|
use hot_reload::ReloaderReceiver;
|
||||||
use rpxy_certs::ServerCryptoBase;
|
use rpxy_certs::ServerCryptoBase;
|
||||||
|
use rustls::crypto::{aws_lc_rs, CryptoProvider};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio_util::sync::CancellationToken;
|
use tokio_util::sync::CancellationToken;
|
||||||
|
|
||||||
|
|
@ -100,6 +101,9 @@ pub async fn entrypoint(
|
||||||
info!("Cache is disabled")
|
info!("Cache is disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Install aws_lc_rs as default crypto provider for rustls
|
||||||
|
let _ = CryptoProvider::install_default(aws_lc_rs::default_provider());
|
||||||
|
|
||||||
// 1. build backends, and make it contained in Arc
|
// 1. build backends, and make it contained in Arc
|
||||||
let app_manager = Arc::new(backend::BackendAppManager::try_from(app_config_list)?);
|
let app_manager = Arc::new(backend::BackendAppManager::try_from(app_config_list)?);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue