This repository contains the content and the server for my Gemini capsule.
Both the server and the builder are written in Go, and don't have any dependencies (except for the Go standard library)
The capsule builder converts Markdown to Gemtext using a simple conversion (without needing a full Markdown parser), and packages everything into a single, self-contained server binary.
The capsule server supports:
- Serving static files
- Search
- Microblog, dynamically fetched from Mastodon
- Administration operations (e.g. collecting a CPU profile) using TLS Client Certificate authentication
Create a server key and certificate:
make server.crt
Create an admin user certificate:
make admin.crt
make
To cross-compile it to a Raspberry PI:
make BUILD_RPI=1
- Install in
/opt/gemsite
- Create link to
/opt/gemsite/init/gemsite.service
in/etc/systemd/system/gemsite.service
systemctl daemon-reload
systemctl enable gemsite
service gemsite start
journalctl -f -n 50 -u gemsite
systemctl restart gemsite