miniflux on arch

by manu

Miniflux is a minimalist and opinionated feed reader. This is a guide for myself on how to install miniflux on Arch Linux. It requires to install postgres, miniflux and uses caddy as reverse proxy.

Install

sudo pacman -S postgresql miniflux

Database setup

sudo su postgres
initdb -D /var/lib/postgres/data
createuser -P miniflux
createuser -O miniflux miniflux
psql miniflux -c 'create extension hstore'

Config file /etc/miniflux.conf

DATABASE_URL="postgres://miniflux:<PASSWORD>@localhost/miniflux?sslmode=disable"
BASE_URL="https://miniflux.151190.xyz"
LISTEN_ADDR="0.0.0.0:9000"

Caddy reverse proxy

miniflux.151190.xyz {
	reverse_proxy 0.0.0.0:9000
}

Enable and start

sudo systemctl enable --now postgresql.service
sudo systemctl enable --now miniflux.service

Migrate and setup

miniflux -c /etc/miniflux.conf -migrate
miniflux -c /etc/miniflux.conf -create-admin