Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"If I do not want others to quote me, I do not speak." -- Phil Wayne


devel / comp.infosystems.gemini / Yet another gemini server

SubjectAuthor
* Yet another gemini serverAndrea Biscuola
`- Re: Portability development Re: Yet another gemini serverAndrea Biscuola

1
Yet another gemini server

<20220922202134.4b38ad92f992f309d57575d4@abiscuola.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=297&group=comp.infosystems.gemini#297

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!aioe.org!D/KC0GKJavwRNk3FtsOchA.user.46.165.242.75.POSTED!not-for-mail
From: a@abiscuola.com (Andrea Biscuola)
Newsgroups: comp.infosystems.gemini
Subject: Yet another gemini server
Date: Thu, 22 Sep 2022 20:21:34 +0200
Organization: Aioe.org NNTP Server
Message-ID: <20220922202134.4b38ad92f992f309d57575d4@abiscuola.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="26339"; posting-host="D/KC0GKJavwRNk3FtsOchA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-unknown-openbsd7.2)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrea Biscuola - Thu, 22 Sep 2022 18:21 UTC

Hi all!

Yes, I know, why re-invent the wheel? Well, because it's fun :)

https://lab.abiscuola.org/gmnxd

It's a gemini server that works with inetd and requires a reverse proxy in front of it for TLS
acceleration. I've built it for my personal use case: an OpenBSD server already using relayd(8)
for the web.

There is also a gemtext -> html5 compiler/converter in the same repository as I use it to serve
the same content of my gemini capsules on the World Wide Web.

Cheers.

Andrea

Re: Portability development Re: Yet another gemini server

<20230324190751.a837967101b0fce9c39aa9e9@abiscuola.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=352&group=comp.infosystems.gemini#352

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: a@abiscuola.com (Andrea Biscuola)
Newsgroups: comp.infosystems.gemini
Subject: Re: Portability development Re: Yet another gemini server
Date: Fri, 24 Mar 2023 19:07:51 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <20230324190751.a837967101b0fce9c39aa9e9@abiscuola.com>
References: <20220922202134.4b38ad92f992f309d57575d4@abiscuola.com>
<1o5i6j-3g5.ln1@intheattic.eternal-september.org>
<20230102231519.4b3efee6d54ccff7b1772ea0@abiscuola.com>
<tul6go$3694j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="c5ed44f6bcc0396dbee072438b161345";
logging-data="1870645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SikGnKUWrWI8a71LmdC5O"
Cancel-Lock: sha1:nS2vGA9UpAAkmhz7dQMQNXQ2Nns=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-unknown-openbsd7.2)
 by: Andrea Biscuola - Fri, 24 Mar 2023 18:07 UTC

Hi.

Sorry for the horrible delay. I was on vacation.

On Sun, 12 Mar 2023 19:43:35 +0100
Mika Feiler <m@mikf.pl> wrote:

> Andrea Biscuola wrote:
> > When I started to work on it, having a portable branch was a "nice to have" that I put at the bottom
> > of the requirements list.
> >
> > However, the code itself is really basic and a port probably require some just some hours of work.
> > Mind that, _I_ don't plan to use gmnxd on linux anytime soon, but if somebody would like to have
> > it work on some linux distributions, I wouldn't mind doing the work (or accepting patches for it).
> >
> > That's said, there are two ways, that I see, to make gmnxd portable:
> >
> > 1 - Doing it quick: things like pledge and unveil becomes no-ops and things like strlcpy are added
> > to the codebase.
> > 2 - Doing it right: find a proper way to sandbox gmnxd on linux (landlock?). However I'm no expert
> > on how to do something like that on linux, so I may need some help with it.
> >
> > I may give it a shot in the next days and see, first, what a "quick" port would look like.
>
> I think a good idea in case of not trying to keep it
> portable-even-but-untested would be to introduce a TODO-like keyword for
> code comments, that would be added every time a change would be
> suspected to be non-portable; or a document where all the things to do
> for such a port would be summarized and kept up to date.

I agree. Right now I'm busy with another project, but just adding a specific document to the
repository wiki would make sense to understand the work required for portability.

I'm not a huge fan of using code comments for such purpose.

> That way a port wouldn't have to start with a thorough reading to
> summarize what has to be done, and would have better chances at
> estimating effort.
>
> Such summarizing/annotating could be performed while the code stuff is
> still relatively fresh in the memory, and while the codebase is still
> fresh and transparent enough.

Well, the code in itself is quite small. It would take more work to make the makefiles portable
than anything else.

--
Andrea

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor