Closed tmpfs closed 1 year ago
My bad, I needed to be explicit with the generics. This works for me:
IpfsClient::<HttpsConnector<HttpConnector>>::from_host_and_port(scheme, host, port)?
Interestingly, build_with_base_uri()
never seems to work (HTTP or HTTPS), I always get this error:
api returned an unknown error
I am getting this error message trying to connect to an IPFS node over HTTPS using the
with-hyper-rustls
feature:The dependency is:
I am using
build_with_base_uri()
from theTryFromUri
trait. For example:Where
uri
ishttps://localhost
.Note that I want to pass in a custom URI and not use
~/.ipfs/api
or the default URI.Running a local daemon using
ipfs daemon
and a simple reverse proxy usingcaddy
:I can see IPFS working correctly by browsing to
https://localhost/webui
.Any idea where the problem is or how I can use a custom URI with HTTPS?