Categorygithub.com/remko/gemsite
repositorypackage
0.0.0-20240817144747-4b222064c51f
Repository: https://github.com/remko/gemsite.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Remko's Gemini Capsule

Build

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
BlogMicroblog Search

Ops

Initializing

Create a server key and certificate:

make server.crt

Create an admin user certificate:

make admin.crt

Building

make

To cross-compile it to a Raspberry PI:

make BUILD_RPI=1

Installing (Debian/Raspbian)

  • 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

Check status/logs

journalctl -f -n 50 -u gemsite

Restart

systemctl restart gemsite