How to I run two Gemini sites on one server?

Port 1965 is only going to one place, so how can I make sure it's going to the right place?

I currently have agate running on a raspberry pi with Arch Linux Arm running agate for the first site.

1 points · 2 comments · view on lemmy.world

2 Comments

wgs@lemmy.sdf.org · 2 pts · 3y (1 reply)

You can use a reverse proxy for that. Start multiple Gemini servers listening on localhost:19650, localhost:19651, ..., and have the rproxy listen on *:1965. Then configure the reverse proxy to redirect to the correct port depending on the TLS SNI (hostname) requested.

That, or use a Gemini server that supports virtual hosts natively :)

Ghast@lemmy.ml · 1 pts · 3y

I ended up on Amfora. No address book or interaction, but it does virtual hosts really easily.