๐พ Archived View for bbs.geminispace.org โบ u โบ norayr โบ 13430 captured on 2024-05-10 at 14:03:20. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2024-03-21)
โก๏ธ Next capture (2024-05-26)
-=-=-=-=-=-=-
Re: "Reverse proxy for gemini vhosts"
@mediocregopher, i tried the traefik configuration inspired by what you linked:
i struggled to understand your configuration actually. my understanding is that traefik should listen on 1965 and redirect based on SNI to let's say 1966 or 1967 - to other ports where gemini servers that serve different domains are listening.
so i tried this:
entryPoints: gemini: address: ":1965" tcp: routers: capsule1: entrypoints: - "gemini" rule: "HostSNI(`norayr.am`)" service: "norayr" tls: passthrough: true capsule2: entrypoints: - "gemini" rule: "HostSNI(`xn--y9a5bft.xn--y9a3aq`)" service: "sona" tls: passthrough: true services: norayr: loadBalancer: servers: - address: "127.0.0.1:1966" sona: loadBalancer: servers: - address: "127.0.0.1:1967"
i have properly configured norayr.am on 1966, and it works if i go to it separately.
however when i enter just gemini://norayr.am, Lagrange sees that Traefik is providing its own default certificate ("CN = TRAEFIK DEFAULT CERT") instead of allowing TLS passthrough.
how would you recommend to change my configuration?
Jan 04 ยท 4 months ago
๐ป mediocregopher [OP...] ยท Jan 05 at 07:58:
@norayr The post I linked to wasn't written by me, I've never used traefik personally, so I don't think I can be much help here. Maybe you're using a newer/older version of traefik that expects a different configuration?
๐ norayr ยท Jan 05 at 14:14:
@mediocregopher would you suggest using tokio-rustls you patched? would you feel comfortable to mention a configuration example for my usecase?
๐ป mediocregopher [OP...] ยท Jan 05 at 17:04:
@norayr the tokio-rustls patch is for a rust library, it's not an actual application which can be used as-is. You would need to code your own which incorporates it.
I used that library as part of this project:
_Technically_ you could use Domani in the way you're wanting to, given a specific configuration. I've been using Domani myself to serve my HTTP(s) and gemini sites for a few months now and haven't noticed any issues, but I wouldn't say it's stable yet. There's still quite a few changes I want to make to it, and I haven't gotten around to generating release binaries for it yet so you'd need to compile it yourself.
๐ norayr ยท Jan 09 at 13:53:
ok i used gmid for reverse proxy and was able to redirect to 2 different molly browns for a test.
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 [...] ยท 27 comments ยท 2023-07-18 ยท 10 months ago