Replies: 1 comment 1 reply
-
Are you aware of https://github.com/n0-computer/iroh-experiments/tree/main/h3-iroh which allows you to run http3 over iroh? It comes with an example running an axum server. The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This might be a better spin on #3236 .
If you're building your app with Iroh support, it would make sense to just expose things like web interface (e.g. web interface) via Iroh as well, to get connectivity even behind firewalls etc.
I'm thinking:
Make a
iroh-axum
crate that basically implements https://docs.rs/axum/latest/axum/serve/trait.Listener.html for iroh'sEndpoint
. That would allow accepting Iroh connections/streams as http connections in Axum and handle them just like normal http traffic.Make an
iroh-http-prox
, that converts http requests tohttps://<node-id>.proxy-domain/
into iroh requests to<node-id>
. DNS can use wildcard records to map all sub-domains to go the the proxy instance.Such a proxy would get access to the transmitted data, but anyone should be able to host/run their own quite easily if so they desire.
Beta Was this translation helpful? Give feedback.
All reactions