Skip to content

Postgres

Run klav-server on Postgres instead of SQLite, and keep the database connection on the same machine or a private network.

Updated

This page explains how to run klav-server on Postgres instead of SQLite. SQLite is enough for one person or a family; Klav’s own tests run against Postgres 17 too.

Point the server to the database:

KLAV_DATABASE_URL=postgres://klav:<password>@127.0.0.1:5432/klav

Migrations run by themselves when the server starts. Attachments stay on disk, in KLAV_DATA_DIR.

Next

Railway.

Type to search…

↑↓ navigate↵ selectEsc close