I go over how to setup a Miniflux server on OpenBSD. Miniflux is a minimalist and opinionated RSS feed reader.
These steps should apply to OpenBSD 6.8 or greater.
- Miniflux uses PostgreSQL as the database, and we also need wget to download Miniflux so the first step is to install the packages.
pkg_add postgresql-server postgresql-contrib postgresql-client miniflux
- Enable PostgreSQL and Miniflux to start at boot.
rcctl enable postgresql miniflux
- If you are installing PostgreSQL for the first time, you have to create a default database first. In the following example we install a database in /var/postgresql/data with a dba account ‘postgres’ and scram-sha-256 authentication. We will be prompted for a password to protect the dba account, assure you save this somewhere safe.
# su - _postgresql $ mkdir /var/postgresql/data $ initdb -D /var/postgresql/data -U postgres -A scram-sha-256 -E UTF8 -W
- While running as _postgresql still, start the postgresql server and then run exit to return to the root account.
$ pg_ctl -D /var/postgresql/data -l logfile start $ exit
- Now create the database and user for Miniflux (Assure to create a very strong password, and save it somewhere safe.)
$ createuser -U postgres --pwprompt --no-superuser --createdb --no-createrole miniflux $ createdb -U miniflux miniflux
- Create the hstore extension with the postgres user as it has SUPERUSER privileges. This is needed by miniflux before the database initialization can happen or work. Run the commands and then run exit to return to the root account.
# su - _postgresql $ psql miniflux postgres > CREATE EXTENSION hstore; > \q $ exit
- Miniflux needs a config file to control the variable to change the standard database name, username, and password, and also to make the web interface listen of any address instead of 127.0.0.1 only. Fill out the database password below to the miniflux database user password you set in step 5.
LISTEN_ADDR=0.0.0.0:8080 DATABASE_URL=user=miniflux password=your password dbname=miniflux sslmode=disable
- Run the SQL migrations to initialize the database.
miniflux -c /etc/miniflux.conf -migrate
- Create an admin user. This is also used to login to the web interface as the first user.
miniflux -c /etc/miniflux.conf -create-admin
- Now we are finally ready to start Miniflux!
rcctl -d start miniflux
- You can now connect to the web interface at http://x.y.x.y:8080/
- 01/17/2021: Fixed
CREATE EXTENSION hstore;issue where
postgresql-contribneeded to be installed and typos.
- 01/18/2021: Updated guide for OpenBSD 6.8, there is now a package available for Miniflux.