It’s sort of simple. You’ll need a few things, really.
- Rust (Can be installed via rustup.rs)
- Certbot (
pkg install py37-certbot)
The first thing you are going to want to do is to install Rust and Certbot. Once those are installed, follow the instructions below. Replace
cargo install agate
certbot certonly --standalone -d <domainname>
agate --content path/to/content/ --key /usr/local/etc/letsencrypt/live/domainname/privkey.pem --cert /usr/local/etc/letsencrypt/live/domainname/cert.pem --addr 0.0.0.0:1965 --hostname <domainname> --lang en-US
- Add a .gmi file to the content directory.
A .gmi file is based off of Markdown with it’s headers, bullets, and ordered lists. Links, however, are not inline. Rather, they are denoted by an
=>. Links are easier than Gopher though. Take this example to the home page:
=> https://jdcain.me A blog
A bit clunky, I can assure you. The ‘text/gemini’ markup is simple and modern.