mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix(deps): corrext aws-lc-rs dependencies and direct-tls
This commit is contained in:
@@ -24,7 +24,7 @@ brotli_compression = [
|
||||
"tower-http/compression-br",
|
||||
]
|
||||
direct_tls = [
|
||||
"axum-server/tls-rustls",
|
||||
"axum-server/tls-rustls-no-provider",
|
||||
"dep:rustls",
|
||||
"dep:axum-server-dual-protocol",
|
||||
]
|
||||
|
||||
@@ -27,9 +27,9 @@ pub(super) async fn serve(
|
||||
|
||||
// we use ring for ruma and hashing state, but aws-lc-rs is the new default.
|
||||
// without this, TLS mode will panic.
|
||||
rustls::crypto::aws_lc_rs::default_provider()
|
||||
rustls::crypto::ring::default_provider()
|
||||
.install_default()
|
||||
.expect("failed to initialise aws-lc-rs rustls crypto provider");
|
||||
.expect("failed to initialise ring rustls crypto provider");
|
||||
|
||||
info!(
|
||||
"Note: It is strongly recommended that you use a reverse proxy instead of running \
|
||||
|
||||
Reference in New Issue
Block a user