-- Leo's gemini proxy

-- Connecting to gemini.conman.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

A reimplementation of a web idea in Gemini

Way back in the day, “ping servers [1]” were popular and I added support for it to mod_blog [2], only to remove it a few years later when the one I was using (the most well known one—I think it was weblogs.com but it's been over fifteen years or so) stopped working. I then removed the support from mod_blog because I didn't feel it was worth keeping a feeature around I didn't use.


Then about a week or so ago, a similar service just started up for Gemini [3] based blogs, and given that I serve up my blog via Gemini [4] I figured I could support that feature again. But as I started, I had an idea—instead of hardcoding support for Antenna [5] in mod_blog, why not support the idea of a “hook” (like git [6])? It would be easier to write a script to update Antenna (since I already support TLS (Transport Layer Security) [7] and Gemini URLs [8] in Lua [9]) than to try to do that all in C.


It wasn't that hard. One function to execute a script [10] and some judicious calls [11] to said function [12] and I have a way to notify external services of new updates.


I wish I had thought of this concept back then. It would have saved me the trouble of adding, and later, removing, code to support various notification sites as they came and went.


Ah well … live and learn.


[1] https://en.wikipedia.org/wiki/Ping_(blogging)

[2] https://github.com/spc476/mod_blog

[3] https://gemini.circumlunar.space/

[4] /boston/2020/07/16.1

[5] gemini://warmedal.se/~antenna/

[6] https://githooks.com/

[7] https://github.com/spc476/lua-conmanorg/blob/master/src/tls.c

[8] https://github.com/spc476/LPeg-Parsers/blob/master/url.lua

[9] https://www.lua.org/

[10] https://github.com/spc476/mod_blog/blob/master/src/hooks.c

[11] https://github.com/spc476/mod_blog/blob/647e4be29a1dfab2ae4a308152f1b758822d6613/src/addutil.c#L90

[12] https://github.com/spc476/mod_blog/blob/647e4be29a1dfab2ae4a308152f1b758822d6613/src/backend.c#L106


Gemini Mention this post

Contact the author


-- Response ended

-- Page fetched on Fri Mar 29 02:36:30 2024