OpenBSD Leftovers
-
Migrating prosody internal storage to SQLite on OpenBSD
As some may know, I'm an XMPP user, an instant messaging protocol which used to be known as Jabber. My server is running Prosody XMPP server on OpenBSD. Recently, I got more users on my server, and I wanted to improve performance a bit by switching from the internal storage to SQLite.
Actually, prosody comes with a tool to switch from a storage to another, but I found the documentation lacking and on OpenBSD the migration tool isn't packaged (yet?).
The switch to SQLite drastically reduced prosody CPU usage on my small server, and went pain free.
-
Managing a Static Website (Hugo) with Ansible and OpenBSD
Until a few weeks later when I decided to upload a new blog post. Unfortunately, I had made the process too complex for my aging brain to easily recover from long term storage. I found I had installed multiple jails on the FreeBSD host system to perform various tasks. One for the hugo installation, another for the webserver, and another for a purpose that I completely forget offhand. At the time of building the system all of the jails seemed important (this is
StockholmKubernetes syndrome at work).Thus, in a fit of pique with past John I decided to simplify my life and migrate away from a containerized system and to a simple webhost. So I installed OpenBSD on a Vultr VPS, setup httpd with SSL and migrated jrgsystems to it.