rc-gemd is a gemini server inspired by rc-httpd.

The scripts expect to be installed under /rc/bin/rc-gemd.

The following script will allow you to test them before installing:
mkdir /tmp/rc-gemd
bind . /tmp/rc-gemd
bind -b /tmp /rc/bin

or one can change the rc_gemd_dir setting in the script.

The service can be started with a combination of listen(8) and tlssrv(8),
tlssrv requires that the tls key be in the hostowners factotum,
this can be done by doing:
cat /lib/ssl/gem.key >> /mnt/factotum/ctl

Then to start the server you can do:
aux/listen1 tcp!*!1965 tlssrv -c /lib/ssl/gem.cert /rc/bin/rc-gemd/rc-gemd

The tls files can be generated by running the following commands:
mkdir -p /lib/ssl
auth/rsagen -t 'service=tls owner=*' >/lib/ssl/gem.key
auth/rsa2x509 'C=US' gem.key |
	auth/pemencode CERTIFICATE >/lib/ssl/gem.cert
Last 5 commits (shortlog)
Date Author Short message Commit hash
2020-08-22 Moody Add option to display folders as pages of links a2cdff91c941cebc075bd5b4421c6634ee15d247
2020-08-20 Moody Remove tlsshim and add proper directions for adding tls key to hostowner's factotum bf0e251a82566f044f228771981a301797e807af
2020-08-20 Moody Parse query options properly 89c9f20250438c4768fc3186d9d83b45d2997c03
2020-08-20 Moody Try and supply a markdown mime type for markdown files 0de05aed17a583e6b74ce4d02876f9bfa88c9c2a
2020-08-20 Moody Make error codes more closely match spec 155f3d40db228d89bd4a400f81920d7eeb241af7
Files (browse)