Installing molly-brown
It seemed easier to use molly-brown installed directly from apt
than to clone the agate git repo and build agate from source...
(and in the end it just works, so I think that's a result)
Mostly copied from
sudo apt install molly-brown
the config file will be something like:
Hostname = "your.domain.name" Port = 1965 CertPath = "/home/USER/.config/molly-brown/certs/cert.pem" KeyPath = "/home/USER/.config/molly-brown/certs/key.pem" DocBase = "/home/USER/gemini" AccessLog = "/home/USER/.var/log/molly/access.log" ErrorLog = "/home/USER/.var/log/molly/error.log"
make a directory structure to hold the config and logs, including the
sub-directories (if they're missing systemd won't be able to start
the server (I know, I tried...)
create server TLS certificates
openssl req -x509 -newkey rsa:2048 -keyout \ ~/.config/molly-brown/certs/key.pem \ -out ~/.config/molly-brown/certs/cert.pem \ -days 3650 -nodes -subj "/CN=your.domain.name"
open firewall : TCP/1965
make a systemd service /usr/lib/systemd/system/molly-brown.service
[Unit] Description=Molly-Brown Startup Wants=network.target After=syslog.target network-online.target [Service] Type=simple ExecStart=/usr/bin/molly-brown -c /home/USER/.config/molly-brown/molly.conf Restart=on-failure RestartSec=10 KillMode=mixed [Install] WantedBy=multi-user.target
make sure all the directories are in place (config/cert/logs)
sudo systemctl enable molly-brown sudo systemctl start molly-brown
add content to ~/gemini
an index.gmi would be good...