Cactus Comments is a commenting system for static websites. This tutorial will guide you through the process of installing Cactus Comments on an OpenBSD server.
Before we begin, make sure you have the following:
Cactus Comments requires Python 3 and pip. OpenBSD comes with Python 2.7 out of the box, so we need to install Python 3 and pip first.
$ doas pkg_add python3 py3-pip
We can now install Cactus Comments using pip.
$ doas pip3 install cactus.chat
Now that Cactus Comments is installed, we need to add it to our website.
Create a new file called comments.md
in your website's content directory.
In this file, add the following line:
{% include "cactus-comments.html" %}
Save the file and add it to your website's navigation menu.
Cactus Comments needs a few settings to work properly.
Create a new file called cactus.yaml
in your website's root directory.
Add the following lines to the file:
cactus_comments:
url: https://api.cactus.chat/v1
site_id: <your_site_id>
site_name: <your_site_name>
Replace <your_site_id>
and <your_site_name>
with your own values. You can find your site ID on the Cactus Comments dashboard.
Finally, rebuild your website and deploy it to your OpenBSD server.
$ cactus build
$ cactus deploy
You have now successfully installed and configured Cactus Comments on your OpenBSD server. Your visitors can now leave comments on your static website.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!