💾 Archived View for tilde.pink › ~imbrica › en › log › 2022-03-28-local-gemini.gmi captured on 2022-04-28 at 17:50:16. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-01-29)

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

Setting up a local Gemini server

Mon Mar 28 14:53:02 -03 2022

This weekend I set myself out to learn how to set up a local Gemini server.

So far I had been doing everything over ssh, which was fun in a sense but at times a bit cumbersome as my Gemini page kept growing larger.

I used mozz's Jetforce and could run a server from a very small Python file:

from jetforce import GeminiServer, StaticDirectoryApplication

app = StaticDirectoryApplication("public_gemini")

if __name__ == "__main__":
    server = GeminiServer(app, host="127.0.0.1", hostname="localhost")
    server.run()

Here's a link to the Jetforce repo:

Jetforce - GitHub

And here are some more options of Gemini servers:

Gemini software

One thing I took a while to figure out was that I should just point the Gemini browser to "localhost", not even including the port number.

Before that I was pointing it to "127.0.0.1" and getting the error "This server does not allow proxy requests".

I hope this is useful to you somehow. I have a more detailed post in the Portuguese section that I may or may not translate one day:

Configurando um servidor Gemini local

As always, thank you for visiting and have a good day. 🐈