💾 Archived View for rawtext.club › ~sloum › geminilist › 002435.gmi captured on 2020-10-31 at 14:32:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

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

<-- back to the mailing list

Working on a gemini server

idf31 at memeware.net idf31 at memeware.net

Mon Aug 17 09:50:31 BST 2020

- - - - - - - - - - - - - - - - - - - 

On 2020-08-17 02:05, Kevin Sangeelee wrote:

Your nimble file requires a more recent build of Nim (1.3.x) than the
latest binaries release (1.2.6), yet it seems to build fine on 1.2.6.
Was this just an oversight, or will I run into problems?
Interesting regardless, my first Nim compile - thanks!
Kevin
On Sun, 16 Aug 2020 at 23:26, <idf31 at memeware.net> wrote:
Hello. I've recently discovered Gemini, and I am really interested in
it! I have surfed the Gopherspace for some time, and I find Gemini
very
neat as a modern Small Internet Protocol. I have decided to make a
server for the gemini protocol, more like an exercise. I want it to
have
a small codebase and be light on resources(my apologies if this sounds
repetitive). I plan to use it in the future to host a bigger scale
project in the gemini-space, so the end-goal is still an usable and
secure server that could be used in real life. Any suggestion or help
is
appreciated, as this is my first attempt at making a server.
The source code is located here: https://github.com/IDF31/geminim
To build it you would need the Nim programming language. You can
install
it here: https://nim-lang.org/install.html.
Then to compile it you run "nimble -d:ssl build" in the source
directory. For now it expects a certificate "mycert.pem" and a private
key "mykey.pem" in the same directory as the binary for the TLS
connection, a configuration system will be added soon(tm).
The server is(for now) looking for a directory named "pub" in the same
directory as the binary.
It uses the default gemini port(1965).

You can use the 1.2.6 version just fine, atleast at the curent stage of my project. Nimble picks whatever my Nim version is as the minimum one when generating a .nimble, and I'm using a devel version because a lot of features(mostly related to optimisation) are being worked on. I guess it is an oversight, I'll change the minimum version to 1.2.6, as a devel version isnt really required. Also cool first Nim compile :D