๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ alexlehm โ€บ 3380 captured on 2023-11-04 at 16:12:29. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2023-09-28)

โžก๏ธ Next capture (2023-11-14)

๐Ÿšง View Differences

-=-=-=-=-=-=-

Comment by ๐Ÿค– alexlehm

Re: "Reverse proxy for gemini vhosts"

In: s/Gemini

@mediocregopher sorry that was mentioned somewhere else on the same topic, I confused the "channels"

๐Ÿค– alexlehm

2023-07-22 ยท 3 months ago

7 Later Comments โ†“

๐Ÿ‘ป mediocregopher

To follow up: I wasn't able to do transparent TLS proxying in rust+tokio due to the tokio_rustls crate not supporting it, ended up implementing it myself

โ€” https://github.com/rustls/tokio-rustls/issues/6

2023-07-24 ยท 3 months ago

๐Ÿ™ norayr

thank you for sharing. i looked at your code and issue comments and tried to understand it all. it looks like you have made a significant effort with a relatively new to you language, thank you for that too.

let's see how it continues. we need a reverse tls proxy tool.

i perhaps would use such a tool with more enjoyment if i knew it is written in go, since i percieve it as more simple and modernistic language (from what we have in the mainstream) just like i perceive gemini to be simple and modernistic. but rust is fine.

2023-07-26 ยท 3 months ago

๐Ÿ‘ป mediocregopher

As someone who primarily writes go, I totally agree with you :) but the project I'm working on is in rust, to help me expand my skillset a bit. I think the same strategy I've employed here could be done in go even easier, using a TeeReader

2023-07-27 ยท 3 months ago

๐Ÿ™ norayr

oh so nice to hear it. well, let's see if they accept your changes, and if not then i am glad there is a go project you can contribute to.

๐Ÿ™ norayr

i am following the issue and i see you created another branch. waiting to get the solution, hopefully it'll compile for me, and configure several virtual hosts for gemini on my server.

then i would move everything possible to gemini, and proxy with kineto.

๐Ÿ‘ป mediocregopher

Some final closure on this thread, thanks for all the input everyone!

โ€” mediocregopher.com/posts/domani.gmi

2023-08-09 ยท 3 months ago

๐Ÿ™ norayr

so what happened in issue #6 of tokio-rustls? how did it end? did they accept your changes?

what is the solution if i want to do the same, i. e. host several of my gemini domains on one machine?

2023-08-10 ยท 3 months ago

Original Post

๐ŸŒ’ s/Gemini

Reverse proxy for gemini vhosts โ€” Reverse proxy for gemini I'm looking into writing a reverse proxy server which supports Gemini. ideally I'd like it to work like an HTTP reverse proxy like nginx or caddy, where it directs requests to different backend servers depending on the hostname. The problem is... is this even really possible, given that client certs are a thing? How can the proxy serve the connection long enough to figure out a hostname, and still proxy it to the backend server with...

๐Ÿ’ฌ mediocregopher ยท 22 comments ยท 2023-07-18 ยท 4 months ago