Comments


Looking for a way to add comments to your static site?
Look no further.

There are many ways comments can be added, the best recent summary I found was by Darek Kay.
I was looking for something self hosted which narrowed the selection down to 9, the most well know of those prossibly being Discourse.
However, most of the self hosted platforms are overkill for what I wanted or they use a complicated (compared to the rest of the site) stack involving npm, gulp, etc.
One stood out though, Commento.
It’s written in Go so the install is extremely simple. The only downside is the requirement for Postgresql as the back end database.

In common with most of our sites, Commento is running in a container, acccessible from the internet via Wireguard.

The installation is straightforward, run as root.
* Create a directory for the install, I used /opt/commento. cd to that directory after creation.
* Get the software, check the releases page for the current download URL.
wget https://dl.commento.io/release/commento-v1.8.0-linux-glibc-amd64.tar.gz
* Change owner:group on the install directory and everything below it.
This was a default Ubuntu server install so I used ubuntu as the user.
chown -R ubuntu: commento/
* Install Postgresql
apt install postgresql
* Create user and database

  su - postgres

  $ createuser --interactive
  Enter name of role to add: ubuntu
  Shall the new role be a superuser? (y/n) y

  $ createdb commento
Comment on this article using form below. Requires email login only for authentication. HTML forbidden, Markdown only.