Basic auth in HTTP API

This commit is contained in:
Igor Katson 2024-11-20 17:20:44 +00:00
parent 09c9659b88
commit 3e8a39314b
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 77 additions and 5 deletions

View file

@ -157,7 +157,10 @@ async fn api_from_config(
.with_context(|| format!("error listening on {}", listen_addr))?;
librqbit::http_api::HttpApi::new(
api.clone(),
Some(librqbit::http_api::HttpApiOptions { read_only }),
Some(librqbit::http_api::HttpApiOptions {
read_only,
basic_auth: None,
}),
)
.make_http_api_and_run(listener, upnp_router)
.await