Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@mastodon.bentasker.co.ukNov 28, 2026, 6:15 PM

New #Blog: Making Multiple Gemini Capsules Available Via Tor and I2P
Author: Ben Tasker

www.bentasker.co.uk/posts/blog/g…

#availability #gemini #i2p #multi-homed #smallnet #tor

bentasker.co.ukMaking Multiple Gemini Capsules Available Via Tor and I2PA couple of weeks ago, I made BenTasker.co.uk available as Gemini capsule. In order to test and improve my Nikola plugin a bit more, I decided to make snippets.bentasker.co.uk available via Gemini too. The plugin pretty much just worked, but I ran into an issue when adding the new virtual host to `agate`. Once I'd sorted that, I decided that I should make my capsules available via Tor/I2P and set up some monitoring. This post talks about standing up an additional capsule, making the content available via anonymous overlay networks and implementing availability monitoring. * * * ### `agate` SSL Problems _In theory_ , all I needed to do was to add a new `--hostname` to `agate`'s invocation: gemini: restart: always image: ghcr.io/mbrubeck/agate:latest container_name: gemini command: --hostname gem.bentasker.co.uk --hostname snippetsgem.bentasker.co.uk --lang en-GB --log-ip However, when I tried to access the capsule, I got a certificate warning: The domain name on the cert was that of my main/original capsule - `gem.bentasker.co.uk`. Looking on the filesystem revealed that `agate` hadn't auto-generated a certificate for the new capsule: ls ../files/gemini/certs/ gem.bentasker.co.uk Poking about in agate's code revealed why: generation of new certificates is guarded by a conditional: if let Host::Domain(ref domain) = hostname && !matches!(certs, Some(ref certs) if certs.has_domain(domain)) The function `has_domain()` iterates through known certificates doing a simple suffix check: pub fn has_domain(&self, domain: &str) -> bool { self.certs.iter().any(|(s, _)| domain.ends_with(s)) } The problem was: * I already had a certificate for `gem.bentasker.co.uk` * The string `snippetsgem.bentasker.co.uk` ends with `gem.bentasker.co.uk` * The `gem.` certificate, however, is not valid for the other name I put a PR up to try and fix the behaviour, but there's an interesting dichotomy here: * Gemini uses Trust-on-first-use (TOFU) rather than having trusted certificate authorities, so I _should_ be able to accept any certificate * Lagrange, though, validate that the common name matches so an incorrect value will generate warnings It seems there's been a long-standing debate around this1. We don't see this issue on the web, because PKI enforcement is much stricter: a cert must be signed by a trusted party, and SANs/Common-Names need to match the hostname and port exactly (or be a wildcard - which even then only run one label deep). Rather than waiting on my PR, though, I needed to generate a certificate myself. Agate uses DER format certs: cd files/gemini/certs ls gem.bentasker.co.uk/ cert.der key.der So, I created a new directory for the new gem and then generated a certificate: mkdir snippetsgem.bentasker.co.uk cd $_ openssl req -new -newkey rsa:2048 -days 4096 -nodes -x509 -outform der -keyout key.der -out cert.der # That got us a DER form cert, but the key still needs converting openssl rsa -inform pem -in key.der -outform der -out key.der To have the new cert picked up, I also needed to restart agate: docker restart gemini After that, the correct cert was presented and I could access the capsule: * * * ### Serving Over Tor It occurred to me that I could also make my capsules available over Tor. However, `agate` uses a directory per virtual host and I didn't want to have my files twice on disk. Luckily, agate supports symlinks, so: cd docroots ln -s gem.bentasker.co.uk e26whn2524322mkxb3cbyk27ev2ihhq2biz35hty7gzgsyrwrygq27yd.onion I updated `agate`'s command line again to include my `.onion` hostname: command: --hostname gem.bentasker.co.uk --hostname snippetsgem.bentasker.co.uk --hostname e26whn2524322mkxb3cbyk27ev2ihhq2biz35hty7gzgsyrwrygq27yd.onion --lang en-GB --log-ip I then updated my `torrc` to expose gemini's port via the hidden service:
@chlopmarcin.101010.pl.ap.brid.gyNov 26, 2026, 7:30 AM

#smolweb #smolnet #smallNet #smallWeb #indieWeb 👇

mastodon.com.plSzanowne fediistoty, całkowitym przypadkiem trafiłem dziś na taką oto inicjatywę: https://cyberspace.online W skrócie - jest to próba, na razie bardzo malutka i skromna, stworzenia sieci (anty)społecznościowej bazowanej w całości na tekście, z opcjonalnym klientem przeglądarkowym czerpiącym pełnymi garściami z estetyki systemów operacyjnych lat 80. Nawet jeśli nie mówię, żebyście lecieli tam masowo się zapisywać, warto jest pobawić się przegladarkowym desktopem, pozmieniać sobie style i ikony dla śmiechu, a nawet pograć w parę tamtejszych gierek. >> https://desktop.cyberspace.online/ Dla wiekszych smakoszy jest przeglądarkowy emulator terminala, na którym można m. in. odpalić Dooma ;) >> https://desktop.cyberspace.online/ Poprzeglądajcie i oceńcie, czy fajne. Mie sie podoba.
@mastodon.bentasker.co.ukNov 14, 2026, 9:45 PM

New #Blog: Making BenTasker.co.uk Available As A Gemini Capsule
Author: Ben Tasker

https://www.bentasker.co.uk/posts/blog/general/multihoming-into-a-gemini-capsule.html?utm_source=rss

#gemini #sitenews #smallnet

bentasker.co.ukMaking BenTasker.co.uk Available As A Gemini Capsule`www.bentasker.co.uk` has long been available via Tor and as an I2P Eepsite. Although access via those networks requires appropriate software, the only real change is the transport layer: the site still ultimately talks HTTP and serves HTML to the user's browser. The site even _looks the same_. This time, though, is different: my posts are now available as a Gemini Capsule (`gemini://gem.bentasker.co.uk`), serving gemtext over Gemini Protocol. One of the things that I noticed while browsing around Gemspace is how _unintrusive_ the browsing experience is: * no javascript * no popups or modals * no autoplaying videos * there isn't _even_ site specific UI design (gemtext is rendered however your browser is configured to display it). I found that this led to engaging with the text much more. Without all the distractions that make up the modern web, the focus really is on the content itself. This post describes getting my Gemini Capsule up and running. * * * ### What Changes? Gemini doesn't use HTML. Instead, it uses gemtext which looks a lot like a very stripped dialect of markdown: # This is a title ## This is a subheading This is a paragraph of text, but also a good time to note that, unlike markdown, gemtext only supports up to h3 (###). => /link/to/somewhere This is a link and this text acts as the anchor We can also include a list: * Item 1 * Item 2 => /path/to/image This text is displayed to the user until they click it to view the image ``` This is a preformatted block of text useful for talking about code ``` > This is a quote That's about everything that's supported. `gemtext` is line orientated, so links and images cannot be added in the middle of a paragraph. Instead, gemlogs tend to insert reference like blocks: If you view the shop link[1] you'll see that the foo is a bar[2]. => link/to/shop [1] The shop link => link/elsewhere [2] Definition of a bar * * * ### Converting I needed to be able to convert my content to gemtext. I draft posts in markdown, so I considered writing a standalone script to convert directly from that to gemtext. However, although the similarities in the syntax were appealing, I use Nikola's Magic Links and so needed posts to pass through Nikola so that they could be expanded. Instead, I created a Nikola command plugin (I'll submit it to the plugin directory once I'm done fiddling with it). The plugin works like nikola's `build` command, but with a few changes: * It outputs gemtext rather than HTML * It doesn't write into the `output` directory * It copies over any raw files that exist in `gemini_files` * It can inject a header into the generated files * It generates Gemini specific RSS and Atom feeds I decided against having it write into `output/` for two reasons: * The `.gmi` files that it generates don't exist in Nikola's HTML tree, so will get deleted whenever a tidy is run * My origin server is firewalled away from the net, so I needed to `rsync` the output to some other server anyway With the plugin written and installed, invocation is easy nikola gemini \ -o capsule \ --header gemini_files/gemini_header.gmi \ --files gemini_files/ \ --feed-url gemini://gem.bentasker.co.uk/ I added this to the commit post-hook which I use to trigger build and deployment of my site. * * * ### Serving The Capsule Serving a Gemini capsule requires a gemini capable server. I decided to deploy Agate with a `docker-compose` like this: services: gemini: restart: always image: ghcr.io/mbrubeck/agate:latest container_name: gemini command: --hostname gem.bentasker.co.uk --hostname projects-gem.bentasker.co.uk --lang en-GB --log-ip ports: - 1965:1965 volumes: - ./files/gemini/docroots:/gmi - ./files/gemini/certs:/certs There's an import